{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "日期  \n",
    "更新日期：10月28日（更新内容）10月29日（更新内容）  \n",
    "撰写人：梁颖欣\n",
    "\n",
    "## 课堂内容：\n",
    "> * 1、高德API-WEB服务\n",
    "> * 2、API经济成本的预估（调用量、并发量）\n",
    "> * 3、地理编码/逆地理编码\n",
    "## 课后练习：\n",
    "> * 1、[地理编码](https://lbs.amap.com/api/webservice/guide/api/georegeo)\n",
    "> * 2、[路径规划](https://lbs.amap.com/api/webservice/guide/api/direction)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 地理编码\n",
    "> * 1、结构化地址的定义： 首先，地址肯定是一串字符，内含国家、省份、城市、区县、城镇、乡村、街道、门牌号码、屋邨、大厦等建筑物名称。按照由大区域名称到小区域名称组合在一起的字符。一个有效的地址应该是独一无二的。注意：针对大陆、港、澳地区的地理编码转换时可以将国家信息选择性的忽略，但省、市、城镇等级别的地址构成是不能忽略的。暂时不支持返回台湾省的详细地址信息。\n",
    "> * 2、URL：https://restapi.amap.com/v3/geocode/geo?parameters\n",
    "> * 3、requests.get()\n",
    "> * 4、参数：\n",
    ">> * A.必选：key（高德API密钥），address（结构化地址）\n",
    ">> * B.可选：city,batch,sig,output,callback"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 准备工作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests,json\n",
    "import pandas as pd\n",
    "key1 = \"5ae4d72387a97e8529903ac948ab9eff\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "#### 准备数据 请思考：高德API是怎么获取数据的？——数据库查询\n",
    "中大南方_address = \"广东省广州市中山大学南方学院\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "scrolled": false
   },
   "outputs": [],
   "source": [
    "url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "params = {\n",
    "    \"key\":key1,\n",
    "    \"address\":中大南方_address,\n",
    "    \"output\":\"json\"\n",
    "}\n",
    "response = requests.get(url,params=params)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "response"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区中山大学南方学院',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.679287,23.632575',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "中大南方_LOCATION = response.json()['geocodes'][0]['location']\n",
    "中大南方_LOCATION"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "### 小结： "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 逆地理编码\n",
    "\n",
    "> * A、url:https://restapi.amap.com/v3/geocode/regeo?parameters\n",
    "> * B、requests.get()\n",
    "> * C、参数：\n",
    "\n",
    ">> * 1、必选：key、location（经纬度坐标）\n",
    ">> * 2、可选：extensions（默认：base）可选“all”，描述数据详细制度"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "def regeo(key,location,extensions=\"base\",radius=None,):\n",
    "    \"\"\"\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params = {'key':key,\n",
    "          'location':location,\n",
    "          'extensions':extensions,\n",
    "             'radius':radius\n",
    "             }\n",
    "    r = requests.get(url,params)\n",
    "    results = r.json\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "params = {'key':key1,\n",
    "          'location':中大南方_LOCATION,\n",
    "          'extensions':'all'}\n",
    "r = requests.get(url,params)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0050461203',\n",
       "    'location': '113.68,23.634',\n",
       "    'direction': '南',\n",
       "    'name': '博学路',\n",
       "    'distance': '156.951'},\n",
       "   {'id': '020F49F0050462451',\n",
       "    'location': '113.677,23.6347',\n",
       "    'direction': '东南',\n",
       "    'name': '中山路',\n",
       "    'distance': '343.951'},\n",
       "   {'id': '020F49F006047765',\n",
       "    'location': '113.682,23.6394',\n",
       "    'direction': '南',\n",
       "    'name': 'S29从莞深高速',\n",
       "    'distance': '807.947'}],\n",
       "  'roadinters': [{'second_name': '中山路',\n",
       "    'first_id': '020F49F0050461203',\n",
       "    'second_id': '020F49F0050462451',\n",
       "    'location': '113.676794,23.634661',\n",
       "    'distance': '343.951',\n",
       "    'first_name': '博学路',\n",
       "    'direction': '东南'}],\n",
       "  'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117103000',\n",
       "   'streetNumber': {'number': '7号',\n",
       "    'location': '113.678600,23.633329',\n",
       "    'direction': '西北',\n",
       "    'distance': '109.203',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [{'area': '536585.849985',\n",
       "    'type': '141201',\n",
       "    'id': 'B00140MR9A',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'adcode': '440117',\n",
       "    'name': '中山大学南方学院',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B00140MR9A',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.450402',\n",
       "    'name': '中山大学南方学院',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'distance': '2.69979',\n",
       "    'tel': '020-61787331',\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFF2VMJ4',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道886号中山大学南方学院内',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院-综合楼',\n",
       "    'location': '113.680117,23.631544',\n",
       "    'distance': '142.466',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B0FFFTC9PH',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.193172',\n",
       "    'name': '中山大学南方学院教学楼10号',\n",
       "    'location': '113.680125,23.633492',\n",
       "    'distance': '132.988',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TQKX',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼6号',\n",
       "    'location': '113.678424,23.633710',\n",
       "    'distance': '153.818',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B00141TQGR',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼7号',\n",
       "    'location': '113.678600,23.633330',\n",
       "    'distance': '109.298',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B00141WQCO',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.14954',\n",
       "    'name': '中山大学南方学院教学楼8号',\n",
       "    'location': '113.680399,23.634329',\n",
       "    'distance': '225.543',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFG9IORM',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院内',\n",
       "    'poiweight': '0.287887',\n",
       "    'name': '中山大学南方学院-图书馆',\n",
       "    'location': '113.679177,23.632762',\n",
       "    'distance': '23.6163',\n",
       "    'tel': '020-61787368;020-61787371',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0FFKP9EQJ',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院4号实验楼',\n",
       "    'location': '113.679963,23.632652',\n",
       "    'distance': '69.4077',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJKIA10',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院',\n",
       "    'poiweight': '0.191691',\n",
       "    'name': '中山大学南方学院-第11教学楼',\n",
       "    'location': '113.680037,23.633173',\n",
       "    'distance': '101.294',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TRVH',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路21',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼2号',\n",
       "    'location': '113.677060,23.631346',\n",
       "    'distance': '264.846',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKERBQZ',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7号附近',\n",
       "    'poiweight': '0.289141',\n",
       "    'name': '中山大学南方学院惟贤门',\n",
       "    'location': '113.678437,23.633721',\n",
       "    'distance': '154.082',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFKP81F4',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '政商研究院教学楼9号',\n",
       "    'location': '113.679949,23.633919',\n",
       "    'distance': '163.951',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP9ET5',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院1号实验楼',\n",
       "    'location': '113.678215,23.631370',\n",
       "    'distance': '172.86',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TR76',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路29',\n",
       "    'poiweight': '0.052819',\n",
       "    'name': '中山大学南方学院教学楼4号',\n",
       "    'location': '113.677460,23.630490',\n",
       "    'distance': '297.315',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP7Q5N',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院2号实验楼',\n",
       "    'location': '113.678211,23.630956',\n",
       "    'distance': '210.76',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00140TWHT',\n",
       "    'direction': '南',\n",
       "    'businessarea': [],\n",
       "    'address': '笃行路2号',\n",
       "    'poiweight': '0.157653',\n",
       "    'name': '教工住宅1号',\n",
       "    'location': '113.678490,23.630432',\n",
       "    'distance': '251.758',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0G3ARGF5Y',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286321',\n",
       "    'name': '中山大学南方学院教学楼1号',\n",
       "    'location': '113.677077,23.631783',\n",
       "    'distance': '241.753',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFLBEOND',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.190963',\n",
       "    'name': '聚贤楼10号',\n",
       "    'location': '113.681253,23.631036',\n",
       "    'distance': '263.444',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKP81F0',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路19号附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼1号(文学与传媒学院)',\n",
       "    'location': '113.676866,23.631736',\n",
       "    'distance': '263.674',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP838K',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路25',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼3号(外国语学院)',\n",
       "    'location': '113.677247,23.630947',\n",
       "    'distance': '275.62',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJLW0O9',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路4附近',\n",
       "    'poiweight': '0.191645',\n",
       "    'name': '中山大学南方学院西区饭堂',\n",
       "    'location': '113.676210,23.632177',\n",
       "    'distance': '316.572',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKPXMCN',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191739',\n",
       "    'name': '中山大学南方学院音乐系',\n",
       "    'location': '113.678792,23.635389',\n",
       "    'distance': '316.942',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJBZLYT',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路与博学路交叉口东南50米',\n",
       "    'poiweight': '0.297382',\n",
       "    'name': '铜像广场',\n",
       "    'location': '113.676921,23.634555',\n",
       "    'distance': '326.444',\n",
       "    'tel': [],\n",
       "    'type': '风景名胜;风景名胜;风景名胜'},\n",
       "   {'id': 'B0FFG8CSEK',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.185371',\n",
       "    'name': 'L5员工宿舍',\n",
       "    'location': '113.682583,23.631487',\n",
       "    'distance': '356.923',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKPXO2S',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.188247',\n",
       "    'name': '中山大学南方学院医务室',\n",
       "    'location': '113.679394,23.635924',\n",
       "    'distance': '372.556',\n",
       "    'tel': [],\n",
       "    'type': '医疗保健服务;医疗保健服务场所;医疗保健服务场所'},\n",
       "   {'id': 'B0FFH6K3U9',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇温泉大道882号中大南方H7栋1-5层',\n",
       "    'poiweight': '0.254885',\n",
       "    'name': '广州中大南方招待所',\n",
       "    'location': '113.676330,23.631332',\n",
       "    'distance': '331.438',\n",
       "    'tel': '020-61787222',\n",
       "    'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "   {'id': 'B0FFHHLMF8',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院明辩路2号第三饭堂',\n",
       "    'poiweight': '0.178935',\n",
       "    'name': '茗语轩餐厅',\n",
       "    'location': '113.681901,23.634495',\n",
       "    'distance': '341.332',\n",
       "    'tel': '13929501395;13533390928',\n",
       "    'type': '餐饮服务;中餐厅;中餐厅'},\n",
       "   {'id': 'B0FFLJV996',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286264',\n",
       "    'name': '保利桃花源66BLOCK',\n",
       "    'location': '113.682954,23.631008',\n",
       "    'distance': '412.208',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0FFKPXY26',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速公路',\n",
       "    'poiweight': '0.21826',\n",
       "    'name': '中山大学南方学院聚贤楼5号',\n",
       "    'location': '113.680265,23.636313',\n",
       "    'distance': '427.447',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;商务住宅相关;商务住宅相关'},\n",
       "   {'id': 'B0FFGXGN3K',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院',\n",
       "    'poiweight': '0.188657',\n",
       "    'name': '中山大学南方学院宿舍H25',\n",
       "    'location': '113.683474,23.632020',\n",
       "    'distance': '430.984',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['博学路', '中山路', 'S29从莞深高速']"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import json\n",
    "_roads_ = []\n",
    "for item in r.json()['regeocode']['roads']:\n",
    "    _roads_.append(item['name'])\n",
    "_roads_"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>020F49F0050461203</td>\n",
       "      <td>113.68,23.634</td>\n",
       "      <td>南</td>\n",
       "      <td>博学路</td>\n",
       "      <td>156.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>020F49F0050462451</td>\n",
       "      <td>113.677,23.6347</td>\n",
       "      <td>东南</td>\n",
       "      <td>中山路</td>\n",
       "      <td>343.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>020F49F006047765</td>\n",
       "      <td>113.682,23.6394</td>\n",
       "      <td>南</td>\n",
       "      <td>S29从莞深高速</td>\n",
       "      <td>807.947</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                  id         location direction      name distance\n",
       "0  020F49F0050461203    113.68,23.634         南       博学路  156.951\n",
       "1  020F49F0050462451  113.677,23.6347        东南       中山路  343.951\n",
       "2   020F49F006047765  113.682,23.6394         南  S29从莞深高速  807.947"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['regeocode']['roads'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>direction</th>\n",
       "      <th>businessarea</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>tel</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B00140MR9A</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号</td>\n",
       "      <td>0.450402</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>113.679262,23.632583</td>\n",
       "      <td>2.69979</td>\n",
       "      <td>020-61787331</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFF2VMJ4</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道886号中山大学南方学院内</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院-综合楼</td>\n",
       "      <td>113.680117,23.631544</td>\n",
       "      <td>142.466</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFFTC9PH</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速(中山大学南方学院)</td>\n",
       "      <td>0.193172</td>\n",
       "      <td>中山大学南方学院教学楼10号</td>\n",
       "      <td>113.680125,23.633492</td>\n",
       "      <td>132.988</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B00141TQKX</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼6号</td>\n",
       "      <td>113.678424,23.633710</td>\n",
       "      <td>153.818</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B00141TQGR</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路7</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼7号</td>\n",
       "      <td>113.678600,23.633330</td>\n",
       "      <td>109.298</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B00141WQCO</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路</td>\n",
       "      <td>0.14954</td>\n",
       "      <td>中山大学南方学院教学楼8号</td>\n",
       "      <td>113.680399,23.634329</td>\n",
       "      <td>225.543</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFG9IORM</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号中山大学南方学院内</td>\n",
       "      <td>0.287887</td>\n",
       "      <td>中山大学南方学院-图书馆</td>\n",
       "      <td>113.679177,23.632762</td>\n",
       "      <td>23.6163</td>\n",
       "      <td>020-61787368;020-61787371</td>\n",
       "      <td>科教文化服务;图书馆;图书馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFKP9EQJ</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院4号实验楼</td>\n",
       "      <td>113.679963,23.632652</td>\n",
       "      <td>69.4077</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFJKIA10</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号中山大学南方学院</td>\n",
       "      <td>0.191691</td>\n",
       "      <td>中山大学南方学院-第11教学楼</td>\n",
       "      <td>113.680037,23.633173</td>\n",
       "      <td>101.294</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B00141TRVH</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路21</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼2号</td>\n",
       "      <td>113.677060,23.631346</td>\n",
       "      <td>264.846</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFKERBQZ</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路7号附近</td>\n",
       "      <td>0.289141</td>\n",
       "      <td>中山大学南方学院惟贤门</td>\n",
       "      <td>113.678437,23.633721</td>\n",
       "      <td>154.082</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFKP81F4</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山路</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>政商研究院教学楼9号</td>\n",
       "      <td>113.679949,23.633919</td>\n",
       "      <td>163.951</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFKP9ET5</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院1号实验楼</td>\n",
       "      <td>113.678215,23.631370</td>\n",
       "      <td>172.86</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B00141TR76</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路29</td>\n",
       "      <td>0.052819</td>\n",
       "      <td>中山大学南方学院教学楼4号</td>\n",
       "      <td>113.677460,23.630490</td>\n",
       "      <td>297.315</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFKP7Q5N</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院2号实验楼</td>\n",
       "      <td>113.678211,23.630956</td>\n",
       "      <td>210.76</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B00140TWHT</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>笃行路2号</td>\n",
       "      <td>0.157653</td>\n",
       "      <td>教工住宅1号</td>\n",
       "      <td>113.678490,23.630432</td>\n",
       "      <td>251.758</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0G3ARGF5Y</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.286321</td>\n",
       "      <td>中山大学南方学院教学楼1号</td>\n",
       "      <td>113.677077,23.631783</td>\n",
       "      <td>241.753</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFLBEOND</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速(中山大学南方学院)</td>\n",
       "      <td>0.190963</td>\n",
       "      <td>聚贤楼10号</td>\n",
       "      <td>113.681253,23.631036</td>\n",
       "      <td>263.444</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFKP81F0</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路19号附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>教学楼1号(文学与传媒学院)</td>\n",
       "      <td>113.676866,23.631736</td>\n",
       "      <td>263.674</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFKP838K</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路25</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>教学楼3号(外国语学院)</td>\n",
       "      <td>113.677247,23.630947</td>\n",
       "      <td>275.62</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>B0FFJLW0O9</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路4附近</td>\n",
       "      <td>0.191645</td>\n",
       "      <td>中山大学南方学院西区饭堂</td>\n",
       "      <td>113.676210,23.632177</td>\n",
       "      <td>316.572</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>B0FFKPXMCN</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山路</td>\n",
       "      <td>0.191739</td>\n",
       "      <td>中山大学南方学院音乐系</td>\n",
       "      <td>113.678792,23.635389</td>\n",
       "      <td>316.942</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>B0FFJBZLYT</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山路与博学路交叉口东南50米</td>\n",
       "      <td>0.297382</td>\n",
       "      <td>铜像广场</td>\n",
       "      <td>113.676921,23.634555</td>\n",
       "      <td>326.444</td>\n",
       "      <td>[]</td>\n",
       "      <td>风景名胜;风景名胜;风景名胜</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>B0FFG8CSEK</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速(中山大学南方学院)</td>\n",
       "      <td>0.185371</td>\n",
       "      <td>L5员工宿舍</td>\n",
       "      <td>113.682583,23.631487</td>\n",
       "      <td>356.923</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>B0FFKPXO2S</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.188247</td>\n",
       "      <td>中山大学南方学院医务室</td>\n",
       "      <td>113.679394,23.635924</td>\n",
       "      <td>372.556</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;医疗保健服务场所;医疗保健服务场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>B0FFH6K3U9</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇温泉大道882号中大南方H7栋1-5层</td>\n",
       "      <td>0.254885</td>\n",
       "      <td>广州中大南方招待所</td>\n",
       "      <td>113.676330,23.631332</td>\n",
       "      <td>331.438</td>\n",
       "      <td>020-61787222</td>\n",
       "      <td>住宿服务;住宿服务相关;住宿服务相关</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>B0FFHHLMF8</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山大学南方学院明辩路2号第三饭堂</td>\n",
       "      <td>0.178935</td>\n",
       "      <td>茗语轩餐厅</td>\n",
       "      <td>113.681901,23.634495</td>\n",
       "      <td>341.332</td>\n",
       "      <td>13929501395;13533390928</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>B0FFLJV996</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.286264</td>\n",
       "      <td>保利桃花源66BLOCK</td>\n",
       "      <td>113.682954,23.631008</td>\n",
       "      <td>412.208</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>B0FFKPXY26</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速公路</td>\n",
       "      <td>0.21826</td>\n",
       "      <td>中山大学南方学院聚贤楼5号</td>\n",
       "      <td>113.680265,23.636313</td>\n",
       "      <td>427.447</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;商务住宅相关;商务住宅相关</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>B0FFGXGN3K</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>0.188657</td>\n",
       "      <td>中山大学南方学院宿舍H25</td>\n",
       "      <td>113.683474,23.632020</td>\n",
       "      <td>430.984</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id direction businessarea                 address poiweight  \\\n",
       "0   B00140MR9A         西           []                温泉大道882号  0.450402   \n",
       "1   B0FFF2VMJ4        东南           []       温泉大道886号中山大学南方学院内  0.148531   \n",
       "2   B0FFFTC9PH        东北           []         从莞深高速(中山大学南方学院)  0.193172   \n",
       "3   B00141TQKX        西北           []                 温泉大道882  0.148531   \n",
       "4   B00141TQGR        西北           []                    博学路7  0.148531   \n",
       "5   B00141WQCO        东北           []                     博学路   0.14954   \n",
       "6   B0FFG9IORM        西北           []       温泉大道882号中山大学南方学院内  0.287887   \n",
       "7   B0FFKP9EQJ         东           []                   博学路附近  0.191742   \n",
       "8   B0FFJKIA10        东北           []        温泉大道882号中山大学南方学院  0.191691   \n",
       "9   B00141TRVH        西南           []                   博学路21  0.148531   \n",
       "10  B0FFKERBQZ        西北           []                 博学路7号附近  0.289141   \n",
       "11  B0FFKP81F4        东北           []                     中山路  0.191742   \n",
       "12  B0FFKP9ET5        西南           []                   博学路附近  0.191742   \n",
       "13  B00141TR76        西南           []                   博学路29  0.052819   \n",
       "14  B0FFKP7Q5N        西南           []                     博学路  0.191742   \n",
       "15  B00140TWHT         南           []                   笃行路2号  0.157653   \n",
       "16  B0G3ARGF5Y         西           []                      []  0.286321   \n",
       "17  B0FFLBEOND        东南           []         从莞深高速(中山大学南方学院)  0.190963   \n",
       "18  B0FFKP81F0         西           []                博学路19号附近  0.191742   \n",
       "19  B0FFKP838K        西南           []                   博学路25  0.191742   \n",
       "20  B0FFJLW0O9         西           []                  博学路4附近  0.191645   \n",
       "21  B0FFKPXMCN         北           []                     中山路  0.191739   \n",
       "22  B0FFJBZLYT        西北           []         中山路与博学路交叉口东南50米  0.297382   \n",
       "23  B0FFG8CSEK         东           []         从莞深高速(中山大学南方学院)  0.185371   \n",
       "24  B0FFKPXO2S         北           []                   博学路附近  0.188247   \n",
       "25  B0FFH6K3U9        西南           []  温泉镇温泉大道882号中大南方H7栋1-5层  0.254885   \n",
       "26  B0FFHHLMF8        东北           []       中山大学南方学院明辩路2号第三饭堂  0.178935   \n",
       "27  B0FFLJV996        东南           []                      []  0.286264   \n",
       "28  B0FFKPXY26         北           []                 从莞深高速公路   0.21826   \n",
       "29  B0FFGXGN3K         东           []                中山大学南方学院  0.188657   \n",
       "\n",
       "               name              location distance                        tel  \\\n",
       "0          中山大学南方学院  113.679262,23.632583  2.69979               020-61787331   \n",
       "1      中山大学南方学院-综合楼  113.680117,23.631544  142.466                         []   \n",
       "2    中山大学南方学院教学楼10号  113.680125,23.633492  132.988                         []   \n",
       "3     中山大学南方学院教学楼6号  113.678424,23.633710  153.818                         []   \n",
       "4     中山大学南方学院教学楼7号  113.678600,23.633330  109.298                         []   \n",
       "5     中山大学南方学院教学楼8号  113.680399,23.634329  225.543                         []   \n",
       "6      中山大学南方学院-图书馆  113.679177,23.632762  23.6163  020-61787368;020-61787371   \n",
       "7     中山大学南方学院4号实验楼  113.679963,23.632652  69.4077                         []   \n",
       "8   中山大学南方学院-第11教学楼  113.680037,23.633173  101.294                         []   \n",
       "9     中山大学南方学院教学楼2号  113.677060,23.631346  264.846                         []   \n",
       "10      中山大学南方学院惟贤门  113.678437,23.633721  154.082                         []   \n",
       "11       政商研究院教学楼9号  113.679949,23.633919  163.951                         []   \n",
       "12    中山大学南方学院1号实验楼  113.678215,23.631370   172.86                         []   \n",
       "13    中山大学南方学院教学楼4号  113.677460,23.630490  297.315                         []   \n",
       "14    中山大学南方学院2号实验楼  113.678211,23.630956   210.76                         []   \n",
       "15           教工住宅1号  113.678490,23.630432  251.758                         []   \n",
       "16    中山大学南方学院教学楼1号  113.677077,23.631783  241.753                         []   \n",
       "17           聚贤楼10号  113.681253,23.631036  263.444                         []   \n",
       "18   教学楼1号(文学与传媒学院)  113.676866,23.631736  263.674                         []   \n",
       "19     教学楼3号(外国语学院)  113.677247,23.630947   275.62                         []   \n",
       "20     中山大学南方学院西区饭堂  113.676210,23.632177  316.572                         []   \n",
       "21      中山大学南方学院音乐系  113.678792,23.635389  316.942                         []   \n",
       "22             铜像广场  113.676921,23.634555  326.444                         []   \n",
       "23           L5员工宿舍  113.682583,23.631487  356.923                         []   \n",
       "24      中山大学南方学院医务室  113.679394,23.635924  372.556                         []   \n",
       "25        广州中大南方招待所  113.676330,23.631332  331.438               020-61787222   \n",
       "26            茗语轩餐厅  113.681901,23.634495  341.332    13929501395;13533390928   \n",
       "27     保利桃花源66BLOCK  113.682954,23.631008  412.208                         []   \n",
       "28    中山大学南方学院聚贤楼5号  113.680265,23.636313  427.447                         []   \n",
       "29    中山大学南方学院宿舍H25  113.683474,23.632020  430.984                         []   \n",
       "\n",
       "                        type  \n",
       "0             科教文化服务;学校;高等院校  \n",
       "1               科教文化服务;学校;学校  \n",
       "2       科教文化服务;科教文化场所;科教文化场所  \n",
       "3               科教文化服务;学校;学校  \n",
       "4             科教文化服务;学校;高等院校  \n",
       "5       科教文化服务;科教文化场所;科教文化场所  \n",
       "6             科教文化服务;图书馆;图书馆  \n",
       "7       科教文化服务;科教文化场所;科教文化场所  \n",
       "8       科教文化服务;科教文化场所;科教文化场所  \n",
       "9       科教文化服务;科教文化场所;科教文化场所  \n",
       "10            科教文化服务;学校;高等院校  \n",
       "11      科教文化服务;科教文化场所;科教文化场所  \n",
       "12      科教文化服务;科教文化场所;科教文化场所  \n",
       "13      科教文化服务;科教文化场所;科教文化场所  \n",
       "14      科教文化服务;科教文化场所;科教文化场所  \n",
       "15             商务住宅;住宅区;住宅小区  \n",
       "16            科教文化服务;学校;高等院校  \n",
       "17               商务住宅;住宅区;宿舍  \n",
       "18      科教文化服务;科教文化场所;科教文化场所  \n",
       "19      科教文化服务;科教文化场所;科教文化场所  \n",
       "20      科教文化服务;科教文化场所;科教文化场所  \n",
       "21      科教文化服务;科教文化场所;科教文化场所  \n",
       "22            风景名胜;风景名胜;风景名胜  \n",
       "23               商务住宅;住宅区;宿舍  \n",
       "24  医疗保健服务;医疗保健服务场所;医疗保健服务场所  \n",
       "25        住宿服务;住宿服务相关;住宿服务相关  \n",
       "26              餐饮服务;中餐厅;中餐厅  \n",
       "27             商务住宅;住宅区;住宅小区  \n",
       "28        商务住宅;商务住宅相关;商务住宅相关  \n",
       "29               商务住宅;住宅区;宿舍  "
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['regeocode']['pois'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 路径规划\n",
    "> * 1、步行\n",
    "> * 2、公交车\n",
    "> * 3、驾车\n",
    "> * 4、骑行"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 步行\n",
    "> * 1、url：https://restapi.amap.com/v3/direction/walking?parameters\n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、origin（出发点（经纬度）），destination（目的地（经纬度））\n",
    ">> * 2、可选：sig,output,callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据准备：\n",
    "origin = \"广东省广州市从化区中山大学南方学院\"\n",
    "destination = \"广东省广州市从化区龙岗村\"\n",
    "key1 = \"5ae4d72387a97e8529903ac948ab9eff\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 思考：如果有1000个位置？重复代码？\n",
    "# 地理编码 => 函数形式\n",
    "def geocode(key,address,city=None,batch=None,)->str:\n",
    "    \"\"\"获取高德API的地理编码\n",
    "温馨提示：key是指高德api的密钥，请先去注册；\n",
    "          address是指结构化地址，具体请查看：https://lbs.amap.com/api/webservice/guide/api/georegeo\n",
    "    \"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"address\":address,\n",
    "        \"city\":city,\n",
    "        \"batch\":batch\n",
    "        \n",
    "    }\n",
    "    response = requests.get(url,params = params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 尝试自己调用这个模块 ： from geo import geocode / import geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区中山大学南方学院',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.679287,23.632575',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from geo import geocode\n",
    "import requests\n",
    "geocode(key1,origin)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on function geocode in module __main__:\n",
      "\n",
      "geocode(key, address, city=None, batch=None) -> str\n",
      "    获取高德API的地理编码\n",
      "    温馨提示：key是指高德api的密钥，请先去注册；\n",
      "              address是指结构化地址，具体请查看：https://lbs.amap.com/api/webservice/guide/api/georegeo\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(geocode)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 总结：  \n",
    "> - 函数一定不会报错，哪怕你的语法有错，参数没定义。--------原因-------->函数只有在被调用时才会有真正意义的运行  \n",
    "> - 函数的优点：1、节省代码，重复利用 2、可以给小白用"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "起始点_中大南方 = geocode(key1,origin)['geocodes'][0]['location']\n",
    "起始点_中大南方"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.668051,23.600869'"
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "目的地_龙岗 = geocode(key1,destination)['geocodes'][0]['location']\n",
    "目的地_龙岗"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.668051,23.600869',\n",
       "  'paths': [{'distance': '4957',\n",
       "    'duration': '3966',\n",
       "    'steps': [{'instruction': '向东步行101米右转',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '101',\n",
       "      'duration': '81',\n",
       "      'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行199米向右前方行走',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '199',\n",
       "      'duration': '159',\n",
       "      'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西步行159米左转',\n",
       "      'orientation': '西',\n",
       "      'road': [],\n",
       "      'distance': '159',\n",
       "      'duration': '127',\n",
       "      'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行237米左转',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '237',\n",
       "      'duration': '190',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行498米向右前方行走',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '498',\n",
       "      'duration': '398',\n",
       "      'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西南步行722米左转',\n",
       "      'orientation': '西南',\n",
       "      'road': [],\n",
       "      'distance': '722',\n",
       "      'duration': '578',\n",
       "      'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东南步行412米向右前方行走',\n",
       "      'orientation': '东南',\n",
       "      'road': [],\n",
       "      'distance': '412',\n",
       "      'duration': '330',\n",
       "      'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向南步行1381米右转',\n",
       "      'orientation': '南',\n",
       "      'road': '乌土街',\n",
       "      'distance': '1381',\n",
       "      'duration': '1105',\n",
       "      'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向西南步行165米直行',\n",
       "      'orientation': '西南',\n",
       "      'road': '乌土街',\n",
       "      'distance': '165',\n",
       "      'duration': '132',\n",
       "      'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿934县道向西步行118米直行',\n",
       "      'orientation': '西',\n",
       "      'road': '934县道',\n",
       "      'distance': '118',\n",
       "      'duration': '94',\n",
       "      'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向西南步行674米向右前方行走',\n",
       "      'orientation': '西南',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '674',\n",
       "      'duration': '539',\n",
       "      'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向西南步行247米右转',\n",
       "      'orientation': '西南',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '247',\n",
       "      'duration': '198',\n",
       "      'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿龙泉路向北步行44米到达目的地',\n",
       "      'orientation': '北',\n",
       "      'road': '龙泉路',\n",
       "      'distance': '44',\n",
       "      'duration': '35',\n",
       "      'polyline': '113.667943,23.600412;113.667812,23.600794',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'walk_type': '0'}]}]}}"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "params = {'key':key1,\n",
    "          'origin':起始点_中大南方,\n",
    "          'destination':目的地_龙岗\n",
    "          }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'distance': '4957',\n",
       "  'duration': '3966',\n",
       "  'steps': [{'instruction': '向东步行101米右转',\n",
       "    'orientation': '东',\n",
       "    'road': [],\n",
       "    'distance': '101',\n",
       "    'duration': '81',\n",
       "    'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行199米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '199',\n",
       "    'duration': '159',\n",
       "    'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向西步行159米左转',\n",
       "    'orientation': '西',\n",
       "    'road': [],\n",
       "    'distance': '159',\n",
       "    'duration': '127',\n",
       "    'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行237米左转',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '237',\n",
       "    'duration': '190',\n",
       "    'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行498米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '498',\n",
       "    'duration': '398',\n",
       "    'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向西南步行722米左转',\n",
       "    'orientation': '西南',\n",
       "    'road': [],\n",
       "    'distance': '722',\n",
       "    'duration': '578',\n",
       "    'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向东南步行412米向右前方行走',\n",
       "    'orientation': '东南',\n",
       "    'road': [],\n",
       "    'distance': '412',\n",
       "    'duration': '330',\n",
       "    'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿乌土街向南步行1381米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '乌土街',\n",
       "    'distance': '1381',\n",
       "    'duration': '1105',\n",
       "    'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿乌土街向西南步行165米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '乌土街',\n",
       "    'distance': '165',\n",
       "    'duration': '132',\n",
       "    'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿934县道向西步行118米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '934县道',\n",
       "    'distance': '118',\n",
       "    'duration': '94',\n",
       "    'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿桃园东路向西南步行674米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '桃园东路',\n",
       "    'distance': '674',\n",
       "    'duration': '539',\n",
       "    'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿桃园东路向西南步行247米右转',\n",
       "    'orientation': '西南',\n",
       "    'road': '桃园东路',\n",
       "    'distance': '247',\n",
       "    'duration': '198',\n",
       "    'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿龙泉路向北步行44米到达目的地',\n",
       "    'orientation': '北',\n",
       "    'road': '龙泉路',\n",
       "    'distance': '44',\n",
       "    'duration': '35',\n",
       "    'polyline': '113.667943,23.600412;113.667812,23.600794',\n",
       "    'action': [],\n",
       "    'assistant_action': '到达目的地',\n",
       "    'walk_type': '0'}]}]"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()['route']['paths']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向东步行101米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>101</td>\n",
       "      <td>81</td>\n",
       "      <td>113.679592,23.632491;113.680586,23.632522</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向南步行199米向右前方行走</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>199</td>\n",
       "      <td>159</td>\n",
       "      <td>113.680586,23.632522;113.680638,23.63214;113.6...</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>向西步行159米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>159</td>\n",
       "      <td>127</td>\n",
       "      <td>113.680204,23.630838;113.680035,23.630773;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>向南步行237米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>237</td>\n",
       "      <td>190</td>\n",
       "      <td>113.678711,23.63036;113.678711,23.62934;113.67...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>向南步行498米向右前方行走</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>498</td>\n",
       "      <td>398</td>\n",
       "      <td>113.678273,23.628368;113.678572,23.628338;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>向西南步行722米左转</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>722</td>\n",
       "      <td>578</td>\n",
       "      <td>113.678572,23.624653;113.678559,23.62451;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>向东南步行412米向右前方行走</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>412</td>\n",
       "      <td>330</td>\n",
       "      <td>113.675239,23.620009;113.67549,23.620013;113.6...</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>沿乌土街向南步行1381米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>1381</td>\n",
       "      <td>1105</td>\n",
       "      <td>113.678181,23.617652;113.678095,23.617205;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>沿乌土街向西南步行165米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>165</td>\n",
       "      <td>132</td>\n",
       "      <td>113.677535,23.605668;113.676988,23.605373;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>沿934县道向西步行118米直行</td>\n",
       "      <td>西</td>\n",
       "      <td>934县道</td>\n",
       "      <td>118</td>\n",
       "      <td>94</td>\n",
       "      <td>113.676159,23.604883;113.675799,23.604805;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>沿桃园东路向西南步行674米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>674</td>\n",
       "      <td>539</td>\n",
       "      <td>113.675009,23.604735;113.674236,23.604683;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>沿桃园东路向西南步行247米右转</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>247</td>\n",
       "      <td>198</td>\n",
       "      <td>113.669714,23.601897;113.66964,23.601771;113.6...</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>沿龙泉路向北步行44米到达目的地</td>\n",
       "      <td>北</td>\n",
       "      <td>龙泉路</td>\n",
       "      <td>44</td>\n",
       "      <td>35</td>\n",
       "      <td>113.667943,23.600412;113.667812,23.600794</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             instruction orientation   road distance duration  \\\n",
       "0             向东步行101米右转           东     []      101       81   \n",
       "1         向南步行199米向右前方行走           南     []      199      159   \n",
       "2             向西步行159米左转           西     []      159      127   \n",
       "3             向南步行237米左转           南     []      237      190   \n",
       "4         向南步行498米向右前方行走           南     []      498      398   \n",
       "5            向西南步行722米左转          西南     []      722      578   \n",
       "6        向东南步行412米向右前方行走          东南     []      412      330   \n",
       "7        沿乌土街向南步行1381米右转           南    乌土街     1381     1105   \n",
       "8        沿乌土街向西南步行165米直行          西南    乌土街      165      132   \n",
       "9       沿934县道向西步行118米直行           西  934县道      118       94   \n",
       "10  沿桃园东路向西南步行674米向右前方行走          西南   桃园东路      674      539   \n",
       "11      沿桃园东路向西南步行247米右转          西南   桃园东路      247      198   \n",
       "12      沿龙泉路向北步行44米到达目的地           北    龙泉路       44       35   \n",
       "\n",
       "                                             polyline  action  \\\n",
       "0           113.679592,23.632491;113.680586,23.632522      右转   \n",
       "1   113.680586,23.632522;113.680638,23.63214;113.6...  向右前方行走   \n",
       "2   113.680204,23.630838;113.680035,23.630773;113....      左转   \n",
       "3   113.678711,23.63036;113.678711,23.62934;113.67...      左转   \n",
       "4   113.678273,23.628368;113.678572,23.628338;113....  向右前方行走   \n",
       "5   113.678572,23.624653;113.678559,23.62451;113.6...      左转   \n",
       "6   113.675239,23.620009;113.67549,23.620013;113.6...  向右前方行走   \n",
       "7   113.678181,23.617652;113.678095,23.617205;113....      右转   \n",
       "8   113.677535,23.605668;113.676988,23.605373;113....      直行   \n",
       "9   113.676159,23.604883;113.675799,23.604805;113....      直行   \n",
       "10  113.675009,23.604735;113.674236,23.604683;113....  向右前方行走   \n",
       "11  113.669714,23.601897;113.66964,23.601771;113.6...      右转   \n",
       "12          113.667943,23.600412;113.667812,23.600794      []   \n",
       "\n",
       "   assistant_action walk_type  \n",
       "0                []         0  \n",
       "1                []         0  \n",
       "2                []         0  \n",
       "3                []         0  \n",
       "4                []         0  \n",
       "5                []         0  \n",
       "6                []         0  \n",
       "7                []         0  \n",
       "8                []         0  \n",
       "9                []         0  \n",
       "10               []         0  \n",
       "11               []         0  \n",
       "12            到达目的地         0  "
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['route']['paths'][0]['steps'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [],
   "source": [
    "def walking(key,origin,destination)->str:\n",
    "    \"\"\"获取高德API的步行路径规划\n",
    "温馨提示：key是指高德api的密钥，请先去注册；\n",
    "          origin是指起始地点，destination是目的地，\n",
    "          具体请查看：https://lbs.amap.com/api/webservice/guide/api/direction\n",
    "    \"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \n",
    "    }\n",
    "    response = requests.get(url,params = params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on function walking in module __main__:\n",
      "\n",
      "walking(key, origin, destination) -> str\n",
      "    获取高德API的步行路径规划\n",
      "    温馨提示：key是指高德api的密钥，请先去注册；\n",
      "              origin是指起始地点，destination是目的地，\n",
      "              具体请查看：https://lbs.amap.com/api/webservice/guide/api/direction\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(walking)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.668051,23.600869',\n",
       "  'paths': [{'distance': '4957',\n",
       "    'duration': '3966',\n",
       "    'steps': [{'instruction': '向东步行101米右转',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '101',\n",
       "      'duration': '81',\n",
       "      'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行199米向右前方行走',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '199',\n",
       "      'duration': '159',\n",
       "      'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西步行159米左转',\n",
       "      'orientation': '西',\n",
       "      'road': [],\n",
       "      'distance': '159',\n",
       "      'duration': '127',\n",
       "      'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行237米左转',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '237',\n",
       "      'duration': '190',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行498米向右前方行走',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '498',\n",
       "      'duration': '398',\n",
       "      'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西南步行722米左转',\n",
       "      'orientation': '西南',\n",
       "      'road': [],\n",
       "      'distance': '722',\n",
       "      'duration': '578',\n",
       "      'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东南步行412米向右前方行走',\n",
       "      'orientation': '东南',\n",
       "      'road': [],\n",
       "      'distance': '412',\n",
       "      'duration': '330',\n",
       "      'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向南步行1381米右转',\n",
       "      'orientation': '南',\n",
       "      'road': '乌土街',\n",
       "      'distance': '1381',\n",
       "      'duration': '1105',\n",
       "      'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向西南步行165米直行',\n",
       "      'orientation': '西南',\n",
       "      'road': '乌土街',\n",
       "      'distance': '165',\n",
       "      'duration': '132',\n",
       "      'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿934县道向西步行118米直行',\n",
       "      'orientation': '西',\n",
       "      'road': '934县道',\n",
       "      'distance': '118',\n",
       "      'duration': '94',\n",
       "      'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向西南步行674米向右前方行走',\n",
       "      'orientation': '西南',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '674',\n",
       "      'duration': '539',\n",
       "      'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向西南步行247米右转',\n",
       "      'orientation': '西南',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '247',\n",
       "      'duration': '198',\n",
       "      'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿龙泉路向北步行44米到达目的地',\n",
       "      'orientation': '北',\n",
       "      'road': '龙泉路',\n",
       "      'distance': '44',\n",
       "      'duration': '35',\n",
       "      'polyline': '113.667943,23.600412;113.667812,23.600794',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'walk_type': '0'}]}]}}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "walking(key1,起始点_中大南方,目的地_龙岗)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 公交路径规划  \n",
    "> * 1、url：https://restapi.amap.com/v3/direction/transit/integrated?parameters\n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、origin（出发点（经纬度）），destination（目的地（经纬度）），city（城市/跨城规划时的起点城市）\n",
    ">> * 2、可选：cityd(跨城公交规划时的终点城市),extensions(返回结果详略可选值:base(default)/all),strategy(公交换乘策略),nightflag(是否计算夜班车),date,time,sig,output,callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据准备\n",
    "import requests,json\n",
    "import pandas as pd\n",
    "key1 = \"5ae4d72387a97e8529903ac948ab9eff\"\n",
    "origin = \"广东省广州市天河区暨南大学\"\n",
    "destination = \"广东省广州市海珠区广州塔\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 43,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "起始点_暨南大学 = geocode(key1,origin)['geocodes'][0]['location']\n",
    "起始点_暨南大学"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.668051,23.600869'"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "目的地_广州塔 = geocode(key1,destination)['geocodes'][0]['location']\n",
    "目的地_广州塔"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '5',\n",
       " 'route': {'origin': '113.350961,23.131577',\n",
       "  'destination': '113.317388,23.083801',\n",
       "  'distance': '7971',\n",
       "  'taxi_cost': '26',\n",
       "  'transits': [{'cost': '2.0',\n",
       "    'duration': '4194',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1246',\n",
       "    'distance': '9256',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.350098,23.125854',\n",
       "       'distance': '771',\n",
       "       'duration': '660',\n",
       "       'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '143',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真茹路步行456米往前走',\n",
       "         'road': '真茹路',\n",
       "         'distance': '456',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如路步行132米左转',\n",
       "         'road': '真如路',\n",
       "         'distance': '132',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349602,23.127140;113.349609,23.127052;113.349617,23.127005;113.349625,23.126862;113.349655,23.126518;113.349678,23.126249;113.349693,23.126106;113.349693,23.126059;113.349709,23.125929',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行40米到达华侨医院(潭村)2站',\n",
       "         'road': '真如东路',\n",
       "         'distance': '40',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349709,23.125925;113.350098,23.125854',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达华侨医院(潭村)2站'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '华侨医院(潭村)2站',\n",
       "          'id': '440100016867035',\n",
       "          'location': '113.350052,23.125587'},\n",
       "         'arrival_stop': {'name': '园艺场',\n",
       "          'id': '440100016867022',\n",
       "          'location': '113.315842,23.084362'},\n",
       "         'name': '562路(棠下小区总站--香江野生动物世界总站)',\n",
       "         'id': '440100016867',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '8010',\n",
       "         'duration': '3126',\n",
       "         'polyline': '113.350052,23.125587;113.350052,23.125586;113.348694,23.125820;113.348134,23.125937;113.347726,23.125981;113.347296,23.126011;113.346480,23.126068;113.345503,23.126128;113.344197,23.126220;113.344115,23.126224;113.343095,23.126289;113.342517,23.126332;113.340673,23.126458;113.340434,23.126519;113.339466,23.126593;113.339345,23.126606;113.338672,23.126658;113.338199,23.126680;113.337795,23.126680;113.337648,23.126680;113.337496,23.126788;113.337418,23.126793;113.336719,23.126845;113.336567,23.126858;113.335104,23.126966;113.334961,23.126975;113.334284,23.127014;113.334154,23.127023;113.333941,23.127036;113.333720,23.127044;113.333607,23.127057;113.332847,23.127127;113.332552,23.127140;113.332257,23.127161;113.332153,23.127170;113.332053,23.127174;113.331793,23.127188;113.331576,23.127205;113.331124,23.127227;113.330877,23.127244;113.330879,23.127249;113.330658,23.127262;113.330261,23.127277;113.329918,23.127296;113.329811,23.127300;113.329628,23.127314;113.328957,23.127354;113.328766,23.127359;113.328194,23.127392;113.328003,23.127405;113.327621,23.127426;113.327515,23.127432;113.327393,23.127436;113.327217,23.127453;113.327034,23.127460;113.326195,23.127522;113.325417,23.127573;113.324593,23.127626;113.324486,23.127630;113.324326,23.127630;113.323921,23.127665;113.323448,23.127708;113.323166,23.127737;113.322533,23.127777;113.322530,23.127778;113.322374,23.127791;113.321667,23.127821;113.321484,23.127752;113.321332,23.127756;113.320707,23.127839;113.320404,23.127882;113.319896,23.127925;113.319557,23.127964;113.319457,23.127977;113.319353,23.128034;113.318837,23.128181;113.318668,23.128242;113.318572,23.128316;113.318416,23.128364;113.318121,23.128498;113.317118,23.128989;113.316120,23.129431;113.315842,23.129618;113.315790,23.129757;113.315690,23.129883;113.315595,23.129957;113.315391,23.130022;113.315191,23.130017;113.315109,23.129996;113.315013,23.129931;113.314957,23.129883;113.314878,23.129787;113.314826,23.129657;113.314809,23.129566;113.314800,23.129479;113.314805,23.129353;113.314852,23.129249;113.314944,23.129158;113.315039,23.129106;113.315079,23.129085;113.315048,23.128854;113.315017,23.128294;113.315009,23.127821;113.314991,23.127279;113.314996,23.127188;113.315000,23.126898;113.315001,23.126774;113.315067,23.126721;113.315147,23.126638;113.315217,23.126562;113.315213,23.126536;113.315191,23.126220;113.315187,23.126102;113.315182,23.125981;113.315148,23.125516;113.315130,23.124926;113.315126,23.124392;113.315132,23.124393;113.315126,23.124392;113.315122,23.124175;113.315095,23.123459;113.315087,23.123277;113.315078,23.122934;113.315041,23.122732;113.314990,23.121629;113.314981,23.121075;113.314970,23.120840;113.314974,23.120688;113.314965,23.120198;113.314958,23.119487;113.314969,23.118850;113.314973,23.118435;113.314985,23.117846;113.314997,23.116941;113.315095,23.116723;113.315082,23.116458;113.315082,23.116454;113.315061,23.115951;113.315052,23.115234;113.315048,23.114831;113.315052,23.114314;113.315056,23.113668;113.315074,23.111545;113.315078,23.111363;113.315082,23.111181;113.315104,23.110586;113.315139,23.110256;113.315265,23.109575;113.315321,23.109314;113.315382,23.108971;113.315595,23.107899;113.315738,23.107174;113.315894,23.106415;113.315972,23.106007;113.316050,23.105373;113.316063,23.104983;113.316081,23.104414;113.316072,23.104245;113.316029,23.103598;113.315820,23.102765;113.315716,23.102040;113.315651,23.101484;113.315651,23.101488;113.315651,23.101484;113.315620,23.101166;113.315582,23.101021;113.315567,23.100855;113.315521,23.100338;113.315453,23.099764;113.315414,23.099497;113.315369,23.099197;113.315315,23.098602;113.315216,23.097651;113.315186,23.097418;113.315239,23.095278;113.315407,23.093334;113.315399,23.093260;113.315376,23.093098;113.315384,23.092730;113.315460,23.091789;113.315514,23.091242;113.315544,23.090864;113.315552,23.090637;113.315598,23.090118;113.315620,23.089857;113.315681,23.089249;113.315712,23.088820;113.315735,23.088663;113.315781,23.088215;113.315781,23.088165;113.315819,23.087540;113.315857,23.087076;113.315903,23.086424;113.315903,23.086081;113.315918,23.085711;113.315918,23.085520;113.315903,23.085209;113.315887,23.084873;113.315865,23.084671;113.315842,23.084362',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '8',\n",
       "         'via_stops': [{'name': '石牌村',\n",
       "           'id': '440100016867014',\n",
       "           'location': '113.339345,23.126606'},\n",
       "          {'name': '冼村',\n",
       "           'id': '440100016867015',\n",
       "           'location': '113.330877,23.127244'},\n",
       "          {'name': '人民日报广东分社',\n",
       "           'id': '440100016867016',\n",
       "           'location': '113.322533,23.127777'},\n",
       "          {'name': '天河',\n",
       "           'id': '440100016867017',\n",
       "           'location': '113.319557,23.127964'},\n",
       "          {'name': '南方报社',\n",
       "           'id': '440100016867018',\n",
       "           'location': '113.315126,23.124392'},\n",
       "          {'name': '五羊新村',\n",
       "           'id': '440100016867019',\n",
       "           'location': '113.315082,23.116458'},\n",
       "          {'name': '客村立交',\n",
       "           'id': '440100016867020',\n",
       "           'location': '113.315651,23.101484'},\n",
       "          {'name': '墩和',\n",
       "           'id': '440100016867021',\n",
       "           'location': '113.315514,23.091242'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.315857,23.084562',\n",
       "       'destination': '113.317375,23.083706',\n",
       "       'distance': '475',\n",
       "       'duration': '407',\n",
       "       'steps': [{'instruction': '沿广州大道南步行155米左转',\n",
       "         'road': '广州大道南',\n",
       "         'distance': '155',\n",
       "         'duration': [],\n",
       "         'polyline': '113.315857,23.084562;113.315819,23.084114;113.315781,23.083767;113.315697,23.083164',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿逸景路步行23米往前走',\n",
       "         'road': '逸景路',\n",
       "         'distance': '23',\n",
       "         'duration': [],\n",
       "         'polyline': '113.315697,23.083160;113.315926,23.083185',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿敦丰路步行150米左转',\n",
       "         'road': '敦丰路',\n",
       "         'distance': '150',\n",
       "         'duration': [],\n",
       "         'polyline': '113.315926,23.083185;113.316139,23.083191;113.317383,23.083117',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行15米右转',\n",
       "         'road': [],\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317383,23.083113;113.317368,23.083195;113.317352,23.083256',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行80米左转',\n",
       "         'road': [],\n",
       "         'distance': '80',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317345,23.083256;113.317596,23.083281;113.317749,23.083324;113.317848,23.083372;113.317879,23.083395;113.317894,23.083443;113.317879,23.083603',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317879,23.083603;113.317581,23.083689;113.317375,23.083706',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '2.0',\n",
       "    'duration': '3830',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1827',\n",
       "    'distance': '9429',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.345093,23.126266',\n",
       "       'distance': '1160',\n",
       "       'duration': '994',\n",
       "       'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '143',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真茹路步行456米右转',\n",
       "         'road': '真茹路',\n",
       "         'distance': '456',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿忠信路步行164米左转',\n",
       "         'road': '忠信路',\n",
       "         'distance': '164',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349602,23.127140;113.349144,23.127136;113.348541,23.127123;113.347977,23.127117',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行115米右转',\n",
       "         'road': [],\n",
       "         'distance': '115',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347977,23.127113;113.347954,23.126619;113.347946,23.126467;113.347878,23.126076',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行282米到达国防大厦',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '282',\n",
       "         'duration': [],\n",
       "         'polyline': '113.347870,23.126072;113.347603,23.126112;113.347534,23.126116;113.347221,23.126137;113.346855,23.126163;113.346703,23.126177;113.346245,23.126198;113.345619,23.126232;113.345093,23.126266',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达国防大厦'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '国防大厦',\n",
       "          'id': '900000028902005',\n",
       "          'location': '113.345070,23.126270'},\n",
       "         'arrival_stop': {'name': '园艺场',\n",
       "          'id': '900000028902014',\n",
       "          'location': '113.315903,23.086342'},\n",
       "         'name': '882路(员村总站--晓港湾总站)',\n",
       "         'id': '900000028902',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '7602',\n",
       "         'duration': '2264',\n",
       "         'polyline': '113.345070,23.126270;113.345069,23.126272;113.344692,23.126293;113.344036,23.126341;113.343958,23.126345;113.343880,23.126354;113.343672,23.126376;113.343459,23.126389;113.343290,23.126406;113.343116,23.126415;113.342969,23.126424;113.342817,23.126432;113.342582,23.126450;113.342322,23.126467;113.341519,23.126519;113.340977,23.126549;113.340616,23.126549;113.340434,23.126519;113.339466,23.126593;113.339345,23.126606;113.338672,23.126658;113.338199,23.126680;113.337795,23.126680;113.337648,23.126680;113.337496,23.126788;113.337418,23.126793;113.336719,23.126845;113.336567,23.126858;113.335104,23.126966;113.334961,23.126975;113.334284,23.127014;113.334154,23.127023;113.333941,23.127036;113.333720,23.127044;113.333607,23.127057;113.332847,23.127127;113.332552,23.127140;113.332257,23.127161;113.332153,23.127170;113.332053,23.127174;113.331793,23.127188;113.331576,23.127205;113.331124,23.127227;113.330890,23.127240;113.330894,23.127245;113.330658,23.127262;113.330261,23.127277;113.329918,23.127296;113.329811,23.127300;113.329628,23.127314;113.328957,23.127354;113.328766,23.127359;113.328194,23.127392;113.328003,23.127405;113.327621,23.127426;113.327515,23.127432;113.327393,23.127436;113.327217,23.127453;113.327034,23.127460;113.326195,23.127522;113.325417,23.127573;113.324593,23.127626;113.324486,23.127630;113.324326,23.127630;113.323921,23.127665;113.323448,23.127708;113.323166,23.127737;113.322517,23.127783;113.322513,23.127782;113.322374,23.127791;113.321667,23.127821;113.321484,23.127752;113.321332,23.127756;113.320707,23.127839;113.320404,23.127882;113.319896,23.127925;113.319557,23.127964;113.319457,23.127977;113.319353,23.128034;113.318837,23.128181;113.318668,23.128242;113.318572,23.128316;113.318416,23.128364;113.318121,23.128498;113.317118,23.128989;113.316120,23.129431;113.315842,23.129618;113.315790,23.129757;113.315690,23.129883;113.315595,23.129957;113.315391,23.130022;113.315191,23.130017;113.315109,23.129996;113.315013,23.129931;113.314957,23.129883;113.314878,23.129787;113.314826,23.129657;113.314809,23.129566;113.314800,23.129479;113.314805,23.129353;113.314852,23.129249;113.314944,23.129158;113.315039,23.129106;113.315076,23.129084;113.315048,23.128854;113.315017,23.128294;113.315009,23.127821;113.314991,23.127279;113.314996,23.127188;113.314999,23.127122;113.315004,23.127051;113.315004,23.126915;113.315004,23.126772;113.315217,23.126577;113.315213,23.126536;113.315191,23.126220;113.315187,23.126102;113.315182,23.125981;113.315148,23.125516;113.315130,23.124926;113.315126,23.124362;113.315132,23.124363;113.315126,23.124362;113.315122,23.124175;113.315095,23.123459;113.315087,23.123277;113.315078,23.122934;113.315143,23.122730;113.315126,23.121636;113.315095,23.120929;113.315074,23.120577;113.315095,23.119058;113.315104,23.118628;113.315126,23.117747;113.315095,23.116723;113.315082,23.116454;113.315082,23.116450;113.315061,23.115951;113.315052,23.115234;113.315048,23.114831;113.315052,23.114314;113.315056,23.113668;113.315074,23.111545;113.315078,23.111363;113.315082,23.111181;113.315104,23.110586;113.315139,23.110256;113.315265,23.109575;113.315321,23.109314;113.315382,23.108971;113.315595,23.107899;113.315738,23.107174;113.315894,23.106415;113.315972,23.106007;113.316050,23.105373;113.316063,23.104983;113.316081,23.104414;113.316072,23.104245;113.316029,23.103598;113.315820,23.102765;113.315716,23.102040;113.315660,23.101554;113.315659,23.101559;113.315659,23.101562;113.315659,23.101542;113.315605,23.101168;113.315582,23.101021;113.315567,23.100760;113.315521,23.100338;113.315483,23.100126;113.315453,23.099766;113.315414,23.099497;113.315361,23.099201;113.315346,23.098871;113.315254,23.097881;113.315186,23.097418;113.315247,23.095278;113.315269,23.094952;113.315399,23.093454;113.315399,23.093386;113.315399,23.093325;113.315376,23.093100;113.315392,23.092730;113.315460,23.091787;113.315498,23.091307;113.315506,23.091307;113.315544,23.090864;113.315552,23.090637;113.315598,23.090118;113.315620,23.089857;113.315681,23.089249;113.315712,23.088820;113.315735,23.088663;113.315781,23.088215;113.315781,23.088165;113.315819,23.087540;113.315857,23.087076;113.315903,23.086424;113.315903,23.086342',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0600',\n",
       "         'end_time': '2230',\n",
       "         'via_num': '8',\n",
       "         'via_stops': [{'name': '石牌村',\n",
       "           'id': '900000028902006',\n",
       "           'location': '113.339345,23.126606'},\n",
       "          {'name': '冼村',\n",
       "           'id': '900000028902007',\n",
       "           'location': '113.330890,23.127240'},\n",
       "          {'name': '人民日报广东分社',\n",
       "           'id': '900000028902008',\n",
       "           'location': '113.322517,23.127783'},\n",
       "          {'name': '天河',\n",
       "           'id': '900000028902009',\n",
       "           'location': '113.319557,23.127964'},\n",
       "          {'name': '南方报社',\n",
       "           'id': '900000028902010',\n",
       "           'location': '113.315126,23.124362'},\n",
       "          {'name': '五羊新村',\n",
       "           'id': '900000028902011',\n",
       "           'location': '113.315082,23.116454'},\n",
       "          {'name': '客村立交',\n",
       "           'id': '900000028902012',\n",
       "           'location': '113.315660,23.101554'},\n",
       "          {'name': '墩和',\n",
       "           'id': '900000028902013',\n",
       "           'location': '113.315498,23.091307'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.315895,23.086311',\n",
       "       'destination': '113.317375,23.083706',\n",
       "       'distance': '667',\n",
       "       'duration': '571',\n",
       "       'steps': [{'instruction': '沿广州大道南步行347米左转',\n",
       "         'road': '广州大道南',\n",
       "         'distance': '347',\n",
       "         'duration': [],\n",
       "         'polyline': '113.315895,23.086311;113.315895,23.086084;113.315918,23.085716;113.315918,23.085526;113.315903,23.085213;113.315887,23.084879;113.315872,23.084675;113.315819,23.084114;113.315781,23.083767;113.315697,23.083164',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿逸景路步行23米往前走',\n",
       "         'road': '逸景路',\n",
       "         'distance': '23',\n",
       "         'duration': [],\n",
       "         'polyline': '113.315697,23.083160;113.315926,23.083185',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿敦丰路步行150米左转',\n",
       "         'road': '敦丰路',\n",
       "         'distance': '150',\n",
       "         'duration': [],\n",
       "         'polyline': '113.315926,23.083185;113.316139,23.083191;113.317383,23.083117',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行15米右转',\n",
       "         'road': [],\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317383,23.083113;113.317368,23.083195;113.317352,23.083256',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行80米左转',\n",
       "         'road': [],\n",
       "         'distance': '80',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317345,23.083256;113.317596,23.083281;113.317749,23.083324;113.317848,23.083372;113.317879,23.083395;113.317894,23.083443;113.317879,23.083603',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317879,23.083603;113.317581,23.083689;113.317375,23.083706',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '3251',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2989',\n",
       "    'distance': '10654',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.339600,23.134882',\n",
       "       'distance': '1705',\n",
       "       'duration': '1461',\n",
       "       'steps': [{'instruction': '沿明湖南路步行35米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351357,23.131479',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行219米向右前方行走',\n",
       "         'road': '真如东路',\n",
       "         'distance': '219',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351357,23.131479;113.351288,23.132196;113.351280,23.132383;113.351265,23.132973;113.351242,23.133142;113.351219,23.133255;113.351105,23.133425',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行311米右转',\n",
       "         'road': '真如东路',\n",
       "         'distance': '311',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351105,23.133425;113.351105,23.133646;113.350967,23.134319;113.350739,23.135208;113.350723,23.135242;113.350685,23.135265;113.350037,23.135382;113.349899,23.135382;113.349792,23.135382;113.349709,23.135386',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行25米左转',\n",
       "         'road': [],\n",
       "         'distance': '25',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349709,23.135386;113.349724,23.135477;113.349762,23.135612',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山大道西辅路步行48米往前走',\n",
       "         'road': '中山大道西辅路',\n",
       "         'distance': '48',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349762,23.135612;113.349297,23.135685',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山大道西步行389米往前走',\n",
       "         'road': '中山大道西',\n",
       "         'distance': '389',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349289,23.135685;113.347931,23.135933;113.347603,23.135994;113.347290,23.136055;113.347237,23.136068;113.346786,23.136150;113.345551,23.136272',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿天河路辅路步行510米左转',\n",
       "         'road': '天河路辅路',\n",
       "         'distance': '510',\n",
       "         'duration': [],\n",
       "         'polyline': '113.345543,23.136272;113.345161,23.136219;113.344955,23.136181;113.344780,23.136147;113.343987,23.135981;113.343697,23.135916;113.343346,23.135841;113.342941,23.135756;113.342758,23.135715;113.342560,23.135668;113.342316,23.135612;113.342033,23.135538;113.341805,23.135481;113.341431,23.135395;113.340897,23.135260;113.340675,23.135187;113.340637,23.135170',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行168米到达岗顶',\n",
       "         'road': [],\n",
       "         'distance': '168',\n",
       "         'duration': [],\n",
       "         'polyline': '113.340630,23.135174;113.340607,23.134878;113.340248,23.134731;113.340080,23.135078;113.339600,23.134882',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达岗顶'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '岗顶',\n",
       "          'id': '440100023034005',\n",
       "          'location': '113.339601,23.134880'},\n",
       "         'arrival_stop': {'name': '大塘',\n",
       "          'id': '440100023034011',\n",
       "          'location': '113.321677,23.077974'},\n",
       "         'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "         'id': '440100023034',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '7665',\n",
       "         'duration': '689',\n",
       "         'polyline': '113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135;113.331184,23.133151;113.330589,23.133198;113.328752,23.133418;113.328183,23.133479;113.327289,23.133514;113.326354,23.133514;113.325081,23.133547;113.324429,23.133601;113.323537,23.133645;113.322613,23.133645;113.322308,23.133591;113.321994,23.133405;113.321558,23.132971;113.321548,23.132550;113.321503,23.131138;113.321456,23.129680;113.321411,23.128625;113.321320,23.127081;113.321280,23.124987;113.321239,23.122875;113.321210,23.120814;113.321206,23.119293;113.321211,23.117802;113.321128,23.114424;113.321192,23.113719;113.321593,23.112339;113.322240,23.110987;113.322804,23.109739;113.323488,23.107913;113.323535,23.107730;113.323560,23.107597;113.323579,23.107443;113.323618,23.107080;113.323618,23.106375;113.323618,23.105619;113.323620,23.103908;113.323551,23.103271;113.323389,23.102569;113.323147,23.101868;113.322783,23.101174;113.320564,23.097706;113.320479,23.097563;113.320414,23.097400;113.320366,23.097218;113.320339,23.097045;113.320324,23.096867;113.320331,23.096197;113.320324,23.095371;113.320395,23.086128;113.321667,23.078469;113.321677,23.077974',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0610',\n",
       "         'end_time': '2330',\n",
       "         'via_num': '5',\n",
       "         'via_stops': [{'name': '石牌桥',\n",
       "           'id': '440100023034006',\n",
       "           'location': '113.332124,23.133135'},\n",
       "          {'name': '体育西路',\n",
       "           'id': '440100023034007',\n",
       "           'location': '113.321503,23.131138'},\n",
       "          {'name': '珠江新城',\n",
       "           'id': '440100023034008',\n",
       "           'location': '113.321206,23.119293'},\n",
       "          {'name': '广州塔',\n",
       "           'id': '440100023034009',\n",
       "           'location': '113.323618,23.106375'},\n",
       "          {'name': '客村',\n",
       "           'id': '440100023034010',\n",
       "           'location': '113.320331,23.096197'}]}]},\n",
       "      'entrance': {'name': 'D口', 'location': '113.340599,23.134874'},\n",
       "      'exit': {'name': 'D口', 'location': '113.322090,23.078421'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.321671,23.077972',\n",
       "       'destination': '113.317375,23.083706',\n",
       "       'distance': '1284',\n",
       "       'duration': '1100',\n",
       "       'steps': [{'instruction': '步行115米右转',\n",
       "         'road': [],\n",
       "         'distance': '115',\n",
       "         'duration': [],\n",
       "         'polyline': '113.321671,23.077972;113.321671,23.078295;113.321671,23.078415;113.322090,23.078421;113.322105,23.078207',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿新滘中路步行329米右转',\n",
       "         'road': '新滘中路',\n",
       "         'distance': '329',\n",
       "         'duration': [],\n",
       "         'polyline': '113.322105,23.078203;113.322037,23.078190;113.321388,23.078012;113.321091,23.077969;113.320679,23.077969;113.320107,23.077969;113.319702,23.077969;113.318901,23.077961',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿上涌村南约大街步行105米往前走',\n",
       "         'road': '上涌村南约大街',\n",
       "         'distance': '105',\n",
       "         'duration': [],\n",
       "         'polyline': '113.318893,23.077955;113.318939,23.078398;113.318947,23.078911',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿乐敦路步行433米左转',\n",
       "         'road': '乐敦路',\n",
       "         'distance': '433',\n",
       "         'duration': [],\n",
       "         'polyline': '113.318947,23.078911;113.318985,23.079254;113.319016,23.079840;113.319016,23.080156;113.318985,23.080330;113.318939,23.080490;113.318832,23.080687;113.318817,23.080717;113.318710,23.080919;113.318596,23.081137;113.318565,23.081249;113.318550,23.081402;113.318573,23.081636;113.318619,23.081966;113.318634,23.082127;113.318649,23.082253;113.318634,23.082405;113.318649,23.082544;113.318672,23.082621;113.318733,23.082747',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿上冲中约新街一巷步行170米右转',\n",
       "         'road': '上冲中约新街一巷',\n",
       "         'distance': '170',\n",
       "         'duration': [],\n",
       "         'polyline': '113.318733,23.082747;113.318687,23.082735;113.318466,23.082722;113.318054,23.082752;113.317749,23.082804;113.317642,23.082830;113.317467,23.082939;113.317406,23.083012;113.317383,23.083113;113.317368,23.083195;113.317352,23.083256',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行80米左转',\n",
       "         'road': [],\n",
       "         'distance': '80',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317345,23.083256;113.317596,23.083281;113.317749,23.083324;113.317848,23.083372;113.317879,23.083395;113.317894,23.083443;113.317879,23.083603',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317879,23.083603;113.317581,23.083689;113.317375,23.083706',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '2.0',\n",
       "    'duration': '4523',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1902',\n",
       "    'distance': '11733',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.351860,23.125507',\n",
       "       'distance': '1045',\n",
       "       'duration': '895',\n",
       "       'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '143',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真茹路步行456米往前走',\n",
       "         'road': '真茹路',\n",
       "         'distance': '456',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如路步行132米左转',\n",
       "         'road': '真如路',\n",
       "         'distance': '132',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349602,23.127140;113.349609,23.127052;113.349617,23.127005;113.349625,23.126862;113.349655,23.126518;113.349678,23.126249;113.349693,23.126106;113.349693,23.126059;113.349709,23.125929',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行165米右转',\n",
       "         'road': '真如东路',\n",
       "         'distance': '165',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349709,23.125925;113.350487,23.125790;113.350983,23.125769;113.351112,23.125803;113.351181,23.125841;113.351288,23.125908',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行69米往前走',\n",
       "         'road': [],\n",
       "         'distance': '69',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351288,23.125902;113.351341,23.125820;113.351486,23.125967;113.351601,23.125769;113.351715,23.125793',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行59米右转',\n",
       "         'road': [],\n",
       "         'distance': '59',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351715,23.125793;113.351852,23.125813;113.351936,23.125799;113.351967,23.125772;113.352028,23.125729;113.352043,23.125687;113.352066,23.125517',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行21米到达华侨医院(潭村)',\n",
       "         'road': [],\n",
       "         'distance': '21',\n",
       "         'duration': [],\n",
       "         'polyline': '113.352066,23.125513;113.351860,23.125507',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达华侨医院(潭村)'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '华侨医院(潭村)',\n",
       "          'id': '440100016909035',\n",
       "          'location': '113.351713,23.125436'},\n",
       "         'arrival_stop': {'name': '广州大道南路口',\n",
       "          'id': '440100016909022',\n",
       "          'location': '113.319069,23.077959'},\n",
       "         'name': '583路(员村一横路总站--芳村西塱总站)',\n",
       "         'id': '440100016909',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '9831',\n",
       "         'duration': '2893',\n",
       "         'polyline': '113.351713,23.125436;113.351562,23.125319;113.351051,23.125387;113.350380,23.125525;113.348694,23.125820;113.348137,23.125938;113.347801,23.125998;113.347450,23.126015;113.347298,23.126011;113.346436,23.126080;113.346230,23.126215;113.346016,23.126221;113.345619,23.126234;113.344696,23.126293;113.344032,23.126343;113.343956,23.126347;113.343887,23.126354;113.343674,23.126375;113.343460,23.126389;113.343292,23.126406;113.343117,23.126415;113.342972,23.126425;113.342819,23.126431;113.342323,23.126467;113.341743,23.126507;113.341522,23.126520;113.340981,23.126549;113.340614,23.126549;113.340424,23.126524;113.339592,23.126585;113.339470,23.126593;113.338676,23.126657;113.338058,23.126684;113.337997,23.126694;113.337830,23.126694;113.337746,23.126766;113.337410,23.126793;113.336723,23.126844;113.336571,23.126858;113.335106,23.126966;113.334961,23.126976;113.334282,23.127014;113.334152,23.127022;113.333939,23.127035;113.333717,23.127045;113.333557,23.127001;113.333443,23.126953;113.333244,23.126808;113.333176,23.126722;113.333168,23.126398;113.333168,23.126221;113.333191,23.125843;113.333229,23.125433;113.333244,23.124969;113.333275,23.124340;113.333397,23.124149;113.333397,23.123671;113.333344,23.123537;113.333336,23.123329;113.333336,23.123274;113.333298,23.123116;113.333244,23.123043;113.333122,23.122978;113.332886,23.122965;113.331841,23.123043;113.330780,23.123129;113.330536,23.123152;113.330421,23.123159;113.330193,23.123125;113.329697,23.123165;113.329376,23.123196;113.328613,23.123251;113.328178,23.123363;113.327850,23.123091;113.327904,23.122473;113.327904,23.122177;113.327904,23.121723;113.327858,23.121151;113.327858,23.120970;113.327843,23.119867;113.327843,23.119427;113.327843,23.119328;113.327715,23.119145;113.327628,23.119062;113.327576,23.118971;113.327492,23.119040;113.326553,23.119089;113.326347,23.119112;113.326137,23.119121;113.326094,23.119103;113.326042,23.119041;113.326050,23.118849;113.326416,23.118816;113.326782,23.118784;113.327469,23.118725;113.327827,23.118752;113.328087,23.118729;113.328453,23.118706;113.329308,23.118647;113.329674,23.118616;113.330666,23.118538;113.330734,23.118534;113.331558,23.118460;113.332962,23.118338;113.333282,23.118042;113.333496,23.117760;113.333511,23.117262;113.333534,23.116739;113.333534,23.116220;113.333557,23.115973;113.333656,23.115973;113.333672,23.115492;113.333672,23.115236;113.333717,23.114389;113.333771,23.113216;113.333794,23.112652;113.333900,23.109680;113.333954,23.108215;113.334015,23.106075;113.333900,23.105869;113.333855,23.105127;113.333855,23.104870;113.333893,23.104244;113.333946,23.103930;113.334030,23.103369;113.334152,23.102430;113.334160,23.102278;113.334152,23.102104;113.334122,23.101917;113.333984,23.101366;113.333954,23.101143;113.333954,23.100946;113.333977,23.100807;113.334015,23.100647;113.334091,23.100491;113.334175,23.100328;113.334282,23.100201;113.334557,23.099913;113.334877,23.099583;113.334961,23.099504;113.335899,23.098537;113.336060,23.098377;113.336273,23.098169;113.336601,23.097891;113.336655,23.097834;113.336693,23.097782;113.336700,23.097733;113.336723,23.097631;113.336021,23.096601;113.335892,23.096458;113.335808,23.096376;113.335678,23.096279;113.335541,23.096184;113.335342,23.096094;113.335030,23.095980;113.334961,23.095964;113.334808,23.095934;113.334610,23.095901;113.334282,23.095911;113.334221,23.095915;113.333885,23.095947;113.333633,23.095974;113.333374,23.095921;113.333176,23.095482;113.333061,23.095236;113.332855,23.094791;113.332825,23.094736;113.332830,23.094731;113.332760,23.094553;113.332695,23.094414;113.332561,23.094106;113.332491,23.093915;113.332418,23.093572;113.332387,23.093346;113.332378,23.093264;113.332378,23.093260;113.332378,23.092986;113.332422,23.092687;113.332565,23.092092;113.332643,23.091823;113.332704,23.091597;113.332808,23.091441;113.332860,23.091276;113.332947,23.090955;113.333008,23.090608;113.333008,23.090395;113.332969,23.090069;113.332938,23.089900;113.332882,23.089618;113.332852,23.089462;113.332782,23.089141;113.332678,23.088698;113.332591,23.088307;113.332387,23.087391;113.332188,23.086441;113.332153,23.086185;113.332153,23.086189;113.332153,23.086184;113.332108,23.085798;113.332069,23.085365;113.332062,23.084940;113.332054,23.084410;113.332054,23.083488;113.332054,23.083437;113.332054,23.083307;113.332054,23.082895;113.332054,23.082644;113.332054,23.082458;113.332054,23.082275;113.332047,23.081047;113.332039,23.080738;113.332039,23.080505;113.331894,23.079874;113.331825,23.078999;113.331726,23.078667;113.331665,23.078524;113.331596,23.078421;113.331520,23.078339;113.331451,23.078274;113.331139,23.078083;113.330833,23.078074;113.330086,23.078070;113.329674,23.078074;113.329628,23.078070;113.329597,23.078056;113.329521,23.077991;113.329048,23.077986;113.328499,23.077986;113.328293,23.077986;113.327919,23.077986;113.327194,23.077986;113.326149,23.077972;113.326141,23.077972;113.325859,23.077972;113.325790,23.077972;113.325691,23.077972;113.325348,23.078074;113.324287,23.078339;113.323975,23.078369;113.323128,23.078356;113.322441,23.078320;113.322037,23.078207;113.321396,23.077972;113.321083,23.077965;113.320679,23.077965;113.320107,23.077972;113.319069,23.077959',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '2200',\n",
       "         'via_num': '14',\n",
       "         'via_stops': [{'name': '国防大厦',\n",
       "           'id': '440100016909008',\n",
       "           'location': '113.341743,23.126507'},\n",
       "          {'name': '石牌村',\n",
       "           'id': '440100016909009',\n",
       "           'location': '113.339592,23.126585'},\n",
       "          {'name': '猎德大道北',\n",
       "           'id': '440100016909042',\n",
       "           'location': '113.333336,23.123329'},\n",
       "          {'name': '金穗路',\n",
       "           'id': '440100016909011',\n",
       "           'location': '113.329697,23.123165'},\n",
       "          {'name': '冼村路中',\n",
       "           'id': '440100016909012',\n",
       "           'location': '113.327843,23.119867'},\n",
       "          {'name': '猎德',\n",
       "           'id': '440100016909013',\n",
       "           'location': '113.329674,23.118616'},\n",
       "          {'name': '猎德东',\n",
       "           'id': '440100016909014',\n",
       "           'location': '113.331558,23.118460'},\n",
       "          {'name': '磨碟沙路站',\n",
       "           'id': '440100016909043',\n",
       "           'location': '113.335899,23.098537'},\n",
       "          {'name': '赤岗',\n",
       "           'id': '440100016909036',\n",
       "           'location': '113.332825,23.094736'},\n",
       "          {'name': '江海大道中',\n",
       "           'id': '440100016909017',\n",
       "           'location': '113.332643,23.091823'},\n",
       "          {'name': '大塘(江海大道)站',\n",
       "           'id': '440100016909037',\n",
       "           'location': '113.332153,23.086185'},\n",
       "          {'name': '龙潭村',\n",
       "           'id': '440100016909019',\n",
       "           'location': '113.332054,23.082644'},\n",
       "          {'name': '龙潭立交西',\n",
       "           'id': '440100016909020',\n",
       "           'location': '113.328293,23.077986'},\n",
       "          {'name': '聚德西路口',\n",
       "           'id': '440100016909021',\n",
       "           'location': '113.326149,23.077972'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.319061,23.077955',\n",
       "       'destination': '113.317375,23.083706',\n",
       "       'distance': '857',\n",
       "       'duration': '734',\n",
       "       'steps': [{'instruction': '沿新滘中路步行17米右转',\n",
       "         'road': '新滘中路',\n",
       "         'distance': '17',\n",
       "         'duration': [],\n",
       "         'polyline': '113.319061,23.077955;113.318901,23.077955',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿上涌村南约大街步行105米往前走',\n",
       "         'road': '上涌村南约大街',\n",
       "         'distance': '105',\n",
       "         'duration': [],\n",
       "         'polyline': '113.318893,23.077955;113.318939,23.078398;113.318947,23.078911',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿乐敦路步行433米左转',\n",
       "         'road': '乐敦路',\n",
       "         'distance': '433',\n",
       "         'duration': [],\n",
       "         'polyline': '113.318947,23.078911;113.318985,23.079254;113.319016,23.079840;113.319016,23.080156;113.318985,23.080330;113.318939,23.080490;113.318832,23.080687;113.318817,23.080717;113.318710,23.080919;113.318596,23.081137;113.318565,23.081249;113.318550,23.081402;113.318573,23.081636;113.318619,23.081966;113.318634,23.082127;113.318649,23.082253;113.318634,23.082405;113.318649,23.082544;113.318672,23.082621;113.318733,23.082747',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿上冲中约新街一巷步行170米右转',\n",
       "         'road': '上冲中约新街一巷',\n",
       "         'distance': '170',\n",
       "         'duration': [],\n",
       "         'polyline': '113.318733,23.082747;113.318687,23.082735;113.318466,23.082722;113.318054,23.082752;113.317749,23.082804;113.317642,23.082830;113.317467,23.082939;113.317406,23.083012;113.317383,23.083113;113.317368,23.083195;113.317352,23.083256',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行80米左转',\n",
       "         'road': [],\n",
       "         'distance': '80',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317345,23.083256;113.317596,23.083281;113.317749,23.083324;113.317848,23.083372;113.317879,23.083395;113.317894,23.083443;113.317879,23.083603',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.317879,23.083603;113.317581,23.083689;113.317375,23.083706',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '6.0',\n",
       "    'duration': '3549',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2372',\n",
       "    'distance': '11107',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.339600,23.134882',\n",
       "       'distance': '1705',\n",
       "       'duration': '1461',\n",
       "       'steps': [{'instruction': '沿明湖南路步行35米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351357,23.131479',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行219米向右前方行走',\n",
       "         'road': '真如东路',\n",
       "         'distance': '219',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351357,23.131479;113.351288,23.132196;113.351280,23.132383;113.351265,23.132973;113.351242,23.133142;113.351219,23.133255;113.351105,23.133425',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行311米右转',\n",
       "         'road': '真如东路',\n",
       "         'distance': '311',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351105,23.133425;113.351105,23.133646;113.350967,23.134319;113.350739,23.135208;113.350723,23.135242;113.350685,23.135265;113.350037,23.135382;113.349899,23.135382;113.349792,23.135382;113.349709,23.135386',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行25米左转',\n",
       "         'road': [],\n",
       "         'distance': '25',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349709,23.135386;113.349724,23.135477;113.349762,23.135612',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山大道西辅路步行48米往前走',\n",
       "         'road': '中山大道西辅路',\n",
       "         'distance': '48',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349762,23.135612;113.349297,23.135685',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山大道西步行389米往前走',\n",
       "         'road': '中山大道西',\n",
       "         'distance': '389',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349289,23.135685;113.347931,23.135933;113.347603,23.135994;113.347290,23.136055;113.347237,23.136068;113.346786,23.136150;113.345551,23.136272',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿天河路辅路步行510米左转',\n",
       "         'road': '天河路辅路',\n",
       "         'distance': '510',\n",
       "         'duration': [],\n",
       "         'polyline': '113.345543,23.136272;113.345161,23.136219;113.344955,23.136181;113.344780,23.136147;113.343987,23.135981;113.343697,23.135916;113.343346,23.135841;113.342941,23.135756;113.342758,23.135715;113.342560,23.135668;113.342316,23.135612;113.342033,23.135538;113.341805,23.135481;113.341431,23.135395;113.340897,23.135260;113.340675,23.135187;113.340637,23.135170',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行168米到达岗顶',\n",
       "         'road': [],\n",
       "         'distance': '168',\n",
       "         'duration': [],\n",
       "         'polyline': '113.340630,23.135174;113.340607,23.134878;113.340248,23.134731;113.340080,23.135078;113.339600,23.134882',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达岗顶'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '岗顶',\n",
       "          'id': '440100023034005',\n",
       "          'location': '113.339601,23.134880'},\n",
       "         'arrival_stop': {'name': '大塘',\n",
       "          'id': '440100023034011',\n",
       "          'location': '113.321677,23.077974'},\n",
       "         'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "         'id': '440100023034',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '7665',\n",
       "         'duration': '689',\n",
       "         'polyline': '113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135;113.331184,23.133151;113.330589,23.133198;113.328752,23.133418;113.328183,23.133479;113.327289,23.133514;113.326354,23.133514;113.325081,23.133547;113.324429,23.133601;113.323537,23.133645;113.322613,23.133645;113.322308,23.133591;113.321994,23.133405;113.321558,23.132971;113.321548,23.132550;113.321503,23.131138;113.321456,23.129680;113.321411,23.128625;113.321320,23.127081;113.321280,23.124987;113.321239,23.122875;113.321210,23.120814;113.321206,23.119293;113.321211,23.117802;113.321128,23.114424;113.321192,23.113719;113.321593,23.112339;113.322240,23.110987;113.322804,23.109739;113.323488,23.107913;113.323535,23.107730;113.323560,23.107597;113.323579,23.107443;113.323618,23.107080;113.323618,23.106375;113.323618,23.105619;113.323620,23.103908;113.323551,23.103271;113.323389,23.102569;113.323147,23.101868;113.322783,23.101174;113.320564,23.097706;113.320479,23.097563;113.320414,23.097400;113.320366,23.097218;113.320339,23.097045;113.320324,23.096867;113.320331,23.096197;113.320324,23.095371;113.320395,23.086128;113.321667,23.078469;113.321677,23.077974',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0610',\n",
       "         'end_time': '2330',\n",
       "         'via_num': '5',\n",
       "         'via_stops': [{'name': '石牌桥',\n",
       "           'id': '440100023034006',\n",
       "           'location': '113.332124,23.133135'},\n",
       "          {'name': '体育西路',\n",
       "           'id': '440100023034007',\n",
       "           'location': '113.321503,23.131138'},\n",
       "          {'name': '珠江新城',\n",
       "           'id': '440100023034008',\n",
       "           'location': '113.321206,23.119293'},\n",
       "          {'name': '广州塔',\n",
       "           'id': '440100023034009',\n",
       "           'location': '113.323618,23.106375'},\n",
       "          {'name': '客村',\n",
       "           'id': '440100023034010',\n",
       "           'location': '113.320331,23.096197'}]}]},\n",
       "      'entrance': {'name': 'D口', 'location': '113.340599,23.134874'},\n",
       "      'exit': {'name': 'D口', 'location': '113.322090,23.078421'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.321671,23.077972',\n",
       "       'destination': '113.319077,23.077959',\n",
       "       'distance': '425',\n",
       "       'duration': '364',\n",
       "       'steps': [{'instruction': '步行115米右转',\n",
       "         'road': [],\n",
       "         'distance': '115',\n",
       "         'duration': [],\n",
       "         'polyline': '113.321671,23.077972;113.321671,23.078295;113.321671,23.078417;113.322090,23.078421;113.322105,23.078207',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿新滘中路步行310米到达广州大道南路口',\n",
       "         'road': '新滘中路',\n",
       "         'distance': '310',\n",
       "         'duration': [],\n",
       "         'polyline': '113.322105,23.078203;113.322037,23.078190;113.321388,23.078012;113.321091,23.077969;113.320679,23.077969;113.320107,23.077969;113.319702,23.077969;113.319077,23.077959',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达广州大道南路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '广州大道南路口',\n",
       "          'id': '440100016436014',\n",
       "          'location': '113.319077,23.077959'},\n",
       "         'arrival_stop': {'name': '园艺场',\n",
       "          'id': '440100016436016',\n",
       "          'location': '113.316101,23.084681'},\n",
       "         'name': '264路(仑头总站--广仁路总站)',\n",
       "         'id': '440100016436',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '1070',\n",
       "         'duration': '827',\n",
       "         'polyline': '113.319077,23.077959;113.318901,23.077959;113.318352,23.077955;113.318237,23.078024;113.318199,23.078033;113.317810,23.078051;113.317032,23.078064;113.316238,23.078070;113.315903,23.078091;113.315781,23.078119;113.315689,23.078165;113.315460,23.078306;113.315292,23.078442;113.315254,23.078489;113.315193,23.078560;113.315155,23.078625;113.315086,23.078756;113.315056,23.078844;113.314972,23.079350;113.315041,23.079586;113.315170,23.080055;113.315239,23.080347;113.315353,23.080711;113.315536,23.081375;113.315712,23.082014;113.315727,23.082041;113.315742,23.082157;113.315758,23.082253;113.315758,23.082275;113.315895,23.083000;113.315918,23.083187;113.316010,23.083733;113.316078,23.084339;113.316101,23.084681',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0600',\n",
       "         'end_time': '2230',\n",
       "         'via_num': '1',\n",
       "         'via_stops': [{'name': '上冲',\n",
       "           'id': '440100016436015',\n",
       "           'location': '113.315727,23.082041'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.316101,23.084730',\n",
       "       'destination': '113.317375,23.083712',\n",
       "       'distance': '242',\n",
       "       'duration': '207',\n",
       "       'steps': [{'instruction': '沿广州大道南步行43米左转',\n",
       "         'road': '广州大道南',\n",
       "         'distance': '43',\n",
       "         'duration': [],\n",
       "         'polyline': '113.316101,23.084730;113.316078,23.084345',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行42米右转',\n",
       "         'road': [],\n",
       "         'distance': '42',\n",
       "         'duration': [],\n",
       "         'polyline': '113.316078,23.084341;113.316391,23.084345;113.316498,23.084345',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行94米左转',\n",
       "         'road': [],\n",
       "         'distance': '94',\n",
       "         'duration': [],\n",
       "         'polyline': '113.316498,23.084341;113.316505,23.083858;113.316559,23.083784;113.316780,23.083586',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行63米',\n",
       "         'road': [],\n",
       "         'distance': '63',\n",
       "         'duration': [],\n",
       "         'polyline': '113.316780,23.083580;113.317001,23.083668;113.317245,23.083719;113.317375,23.083712',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "city = \"广东省\"\n",
    "url = 'https://restapi.amap.com/v3/direction/transit/integrated?parameters'\n",
    "params = {'key':key1,\n",
    "          'origin':起始点_暨南大学,\n",
    "          'destination':目的地_广州塔,\n",
    "          'city':city\n",
    "          }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'cost': '2.0',\n",
       "  'duration': '4194',\n",
       "  'nightflag': '0',\n",
       "  'walking_distance': '1246',\n",
       "  'distance': '9256',\n",
       "  'missed': '0',\n",
       "  'segments': [{'taxi': [],\n",
       "    'walking': {'origin': '113.351013,23.131449',\n",
       "     'destination': '113.350098,23.125854',\n",
       "     'distance': '771',\n",
       "     'duration': '660',\n",
       "     'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "       'road': '明湖南路',\n",
       "       'distance': '143',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真茹路步行456米往前走',\n",
       "       'road': '真茹路',\n",
       "       'distance': '456',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真如路步行132米左转',\n",
       "       'road': '真如路',\n",
       "       'distance': '132',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349602,23.127140;113.349609,23.127052;113.349617,23.127005;113.349625,23.126862;113.349655,23.126518;113.349678,23.126249;113.349693,23.126106;113.349693,23.126059;113.349709,23.125929',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真如东路步行40米到达华侨医院(潭村)2站',\n",
       "       'road': '真如东路',\n",
       "       'distance': '40',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349709,23.125925;113.350098,23.125854',\n",
       "       'action': [],\n",
       "       'assistant_action': '到达华侨医院(潭村)2站'}]},\n",
       "    'bus': {'buslines': [{'departure_stop': {'name': '华侨医院(潭村)2站',\n",
       "        'id': '440100016867035',\n",
       "        'location': '113.350052,23.125587'},\n",
       "       'arrival_stop': {'name': '园艺场',\n",
       "        'id': '440100016867022',\n",
       "        'location': '113.315842,23.084362'},\n",
       "       'name': '562路(棠下小区总站--香江野生动物世界总站)',\n",
       "       'id': '440100016867',\n",
       "       'type': '普通公交线路',\n",
       "       'distance': '8010',\n",
       "       'duration': '3126',\n",
       "       'polyline': '113.350052,23.125587;113.350052,23.125586;113.348694,23.125820;113.348134,23.125937;113.347726,23.125981;113.347296,23.126011;113.346480,23.126068;113.345503,23.126128;113.344197,23.126220;113.344115,23.126224;113.343095,23.126289;113.342517,23.126332;113.340673,23.126458;113.340434,23.126519;113.339466,23.126593;113.339345,23.126606;113.338672,23.126658;113.338199,23.126680;113.337795,23.126680;113.337648,23.126680;113.337496,23.126788;113.337418,23.126793;113.336719,23.126845;113.336567,23.126858;113.335104,23.126966;113.334961,23.126975;113.334284,23.127014;113.334154,23.127023;113.333941,23.127036;113.333720,23.127044;113.333607,23.127057;113.332847,23.127127;113.332552,23.127140;113.332257,23.127161;113.332153,23.127170;113.332053,23.127174;113.331793,23.127188;113.331576,23.127205;113.331124,23.127227;113.330877,23.127244;113.330879,23.127249;113.330658,23.127262;113.330261,23.127277;113.329918,23.127296;113.329811,23.127300;113.329628,23.127314;113.328957,23.127354;113.328766,23.127359;113.328194,23.127392;113.328003,23.127405;113.327621,23.127426;113.327515,23.127432;113.327393,23.127436;113.327217,23.127453;113.327034,23.127460;113.326195,23.127522;113.325417,23.127573;113.324593,23.127626;113.324486,23.127630;113.324326,23.127630;113.323921,23.127665;113.323448,23.127708;113.323166,23.127737;113.322533,23.127777;113.322530,23.127778;113.322374,23.127791;113.321667,23.127821;113.321484,23.127752;113.321332,23.127756;113.320707,23.127839;113.320404,23.127882;113.319896,23.127925;113.319557,23.127964;113.319457,23.127977;113.319353,23.128034;113.318837,23.128181;113.318668,23.128242;113.318572,23.128316;113.318416,23.128364;113.318121,23.128498;113.317118,23.128989;113.316120,23.129431;113.315842,23.129618;113.315790,23.129757;113.315690,23.129883;113.315595,23.129957;113.315391,23.130022;113.315191,23.130017;113.315109,23.129996;113.315013,23.129931;113.314957,23.129883;113.314878,23.129787;113.314826,23.129657;113.314809,23.129566;113.314800,23.129479;113.314805,23.129353;113.314852,23.129249;113.314944,23.129158;113.315039,23.129106;113.315079,23.129085;113.315048,23.128854;113.315017,23.128294;113.315009,23.127821;113.314991,23.127279;113.314996,23.127188;113.315000,23.126898;113.315001,23.126774;113.315067,23.126721;113.315147,23.126638;113.315217,23.126562;113.315213,23.126536;113.315191,23.126220;113.315187,23.126102;113.315182,23.125981;113.315148,23.125516;113.315130,23.124926;113.315126,23.124392;113.315132,23.124393;113.315126,23.124392;113.315122,23.124175;113.315095,23.123459;113.315087,23.123277;113.315078,23.122934;113.315041,23.122732;113.314990,23.121629;113.314981,23.121075;113.314970,23.120840;113.314974,23.120688;113.314965,23.120198;113.314958,23.119487;113.314969,23.118850;113.314973,23.118435;113.314985,23.117846;113.314997,23.116941;113.315095,23.116723;113.315082,23.116458;113.315082,23.116454;113.315061,23.115951;113.315052,23.115234;113.315048,23.114831;113.315052,23.114314;113.315056,23.113668;113.315074,23.111545;113.315078,23.111363;113.315082,23.111181;113.315104,23.110586;113.315139,23.110256;113.315265,23.109575;113.315321,23.109314;113.315382,23.108971;113.315595,23.107899;113.315738,23.107174;113.315894,23.106415;113.315972,23.106007;113.316050,23.105373;113.316063,23.104983;113.316081,23.104414;113.316072,23.104245;113.316029,23.103598;113.315820,23.102765;113.315716,23.102040;113.315651,23.101484;113.315651,23.101488;113.315651,23.101484;113.315620,23.101166;113.315582,23.101021;113.315567,23.100855;113.315521,23.100338;113.315453,23.099764;113.315414,23.099497;113.315369,23.099197;113.315315,23.098602;113.315216,23.097651;113.315186,23.097418;113.315239,23.095278;113.315407,23.093334;113.315399,23.093260;113.315376,23.093098;113.315384,23.092730;113.315460,23.091789;113.315514,23.091242;113.315544,23.090864;113.315552,23.090637;113.315598,23.090118;113.315620,23.089857;113.315681,23.089249;113.315712,23.088820;113.315735,23.088663;113.315781,23.088215;113.315781,23.088165;113.315819,23.087540;113.315857,23.087076;113.315903,23.086424;113.315903,23.086081;113.315918,23.085711;113.315918,23.085520;113.315903,23.085209;113.315887,23.084873;113.315865,23.084671;113.315842,23.084362',\n",
       "       'bustimetag': '0',\n",
       "       'start_time': [],\n",
       "       'end_time': [],\n",
       "       'via_num': '8',\n",
       "       'via_stops': [{'name': '石牌村',\n",
       "         'id': '440100016867014',\n",
       "         'location': '113.339345,23.126606'},\n",
       "        {'name': '冼村',\n",
       "         'id': '440100016867015',\n",
       "         'location': '113.330877,23.127244'},\n",
       "        {'name': '人民日报广东分社',\n",
       "         'id': '440100016867016',\n",
       "         'location': '113.322533,23.127777'},\n",
       "        {'name': '天河',\n",
       "         'id': '440100016867017',\n",
       "         'location': '113.319557,23.127964'},\n",
       "        {'name': '南方报社',\n",
       "         'id': '440100016867018',\n",
       "         'location': '113.315126,23.124392'},\n",
       "        {'name': '五羊新村',\n",
       "         'id': '440100016867019',\n",
       "         'location': '113.315082,23.116458'},\n",
       "        {'name': '客村立交',\n",
       "         'id': '440100016867020',\n",
       "         'location': '113.315651,23.101484'},\n",
       "        {'name': '墩和',\n",
       "         'id': '440100016867021',\n",
       "         'location': '113.315514,23.091242'}]}]},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "   {'taxi': [],\n",
       "    'walking': {'origin': '113.315857,23.084562',\n",
       "     'destination': '113.317375,23.083706',\n",
       "     'distance': '475',\n",
       "     'duration': '407',\n",
       "     'steps': [{'instruction': '沿广州大道南步行155米左转',\n",
       "       'road': '广州大道南',\n",
       "       'distance': '155',\n",
       "       'duration': [],\n",
       "       'polyline': '113.315857,23.084562;113.315819,23.084114;113.315781,23.083767;113.315697,23.083164',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿逸景路步行23米往前走',\n",
       "       'road': '逸景路',\n",
       "       'distance': '23',\n",
       "       'duration': [],\n",
       "       'polyline': '113.315697,23.083160;113.315926,23.083185',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿敦丰路步行150米左转',\n",
       "       'road': '敦丰路',\n",
       "       'distance': '150',\n",
       "       'duration': [],\n",
       "       'polyline': '113.315926,23.083185;113.316139,23.083191;113.317383,23.083117',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行15米右转',\n",
       "       'road': [],\n",
       "       'distance': '15',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317383,23.083113;113.317368,23.083195;113.317352,23.083256',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行80米左转',\n",
       "       'road': [],\n",
       "       'distance': '80',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317345,23.083256;113.317596,23.083281;113.317749,23.083324;113.317848,23.083372;113.317879,23.083395;113.317894,23.083443;113.317879,23.083603',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行52米',\n",
       "       'road': [],\n",
       "       'distance': '52',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317879,23.083603;113.317581,23.083689;113.317375,23.083706',\n",
       "       'action': [],\n",
       "       'assistant_action': []}]},\n",
       "    'bus': {'buslines': []},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       " {'cost': '2.0',\n",
       "  'duration': '3830',\n",
       "  'nightflag': '0',\n",
       "  'walking_distance': '1827',\n",
       "  'distance': '9429',\n",
       "  'missed': '0',\n",
       "  'segments': [{'taxi': [],\n",
       "    'walking': {'origin': '113.351013,23.131449',\n",
       "     'destination': '113.345093,23.126266',\n",
       "     'distance': '1160',\n",
       "     'duration': '994',\n",
       "     'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "       'road': '明湖南路',\n",
       "       'distance': '143',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真茹路步行456米右转',\n",
       "       'road': '真茹路',\n",
       "       'distance': '456',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿忠信路步行164米左转',\n",
       "       'road': '忠信路',\n",
       "       'distance': '164',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349602,23.127140;113.349144,23.127136;113.348541,23.127123;113.347977,23.127117',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行115米右转',\n",
       "       'road': [],\n",
       "       'distance': '115',\n",
       "       'duration': [],\n",
       "       'polyline': '113.347977,23.127113;113.347954,23.126619;113.347946,23.126467;113.347878,23.126076',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿黄埔大道西步行282米到达国防大厦',\n",
       "       'road': '黄埔大道西',\n",
       "       'distance': '282',\n",
       "       'duration': [],\n",
       "       'polyline': '113.347870,23.126072;113.347603,23.126112;113.347534,23.126116;113.347221,23.126137;113.346855,23.126163;113.346703,23.126177;113.346245,23.126198;113.345619,23.126232;113.345093,23.126266',\n",
       "       'action': [],\n",
       "       'assistant_action': '到达国防大厦'}]},\n",
       "    'bus': {'buslines': [{'departure_stop': {'name': '国防大厦',\n",
       "        'id': '900000028902005',\n",
       "        'location': '113.345070,23.126270'},\n",
       "       'arrival_stop': {'name': '园艺场',\n",
       "        'id': '900000028902014',\n",
       "        'location': '113.315903,23.086342'},\n",
       "       'name': '882路(员村总站--晓港湾总站)',\n",
       "       'id': '900000028902',\n",
       "       'type': '普通公交线路',\n",
       "       'distance': '7602',\n",
       "       'duration': '2264',\n",
       "       'polyline': '113.345070,23.126270;113.345069,23.126272;113.344692,23.126293;113.344036,23.126341;113.343958,23.126345;113.343880,23.126354;113.343672,23.126376;113.343459,23.126389;113.343290,23.126406;113.343116,23.126415;113.342969,23.126424;113.342817,23.126432;113.342582,23.126450;113.342322,23.126467;113.341519,23.126519;113.340977,23.126549;113.340616,23.126549;113.340434,23.126519;113.339466,23.126593;113.339345,23.126606;113.338672,23.126658;113.338199,23.126680;113.337795,23.126680;113.337648,23.126680;113.337496,23.126788;113.337418,23.126793;113.336719,23.126845;113.336567,23.126858;113.335104,23.126966;113.334961,23.126975;113.334284,23.127014;113.334154,23.127023;113.333941,23.127036;113.333720,23.127044;113.333607,23.127057;113.332847,23.127127;113.332552,23.127140;113.332257,23.127161;113.332153,23.127170;113.332053,23.127174;113.331793,23.127188;113.331576,23.127205;113.331124,23.127227;113.330890,23.127240;113.330894,23.127245;113.330658,23.127262;113.330261,23.127277;113.329918,23.127296;113.329811,23.127300;113.329628,23.127314;113.328957,23.127354;113.328766,23.127359;113.328194,23.127392;113.328003,23.127405;113.327621,23.127426;113.327515,23.127432;113.327393,23.127436;113.327217,23.127453;113.327034,23.127460;113.326195,23.127522;113.325417,23.127573;113.324593,23.127626;113.324486,23.127630;113.324326,23.127630;113.323921,23.127665;113.323448,23.127708;113.323166,23.127737;113.322517,23.127783;113.322513,23.127782;113.322374,23.127791;113.321667,23.127821;113.321484,23.127752;113.321332,23.127756;113.320707,23.127839;113.320404,23.127882;113.319896,23.127925;113.319557,23.127964;113.319457,23.127977;113.319353,23.128034;113.318837,23.128181;113.318668,23.128242;113.318572,23.128316;113.318416,23.128364;113.318121,23.128498;113.317118,23.128989;113.316120,23.129431;113.315842,23.129618;113.315790,23.129757;113.315690,23.129883;113.315595,23.129957;113.315391,23.130022;113.315191,23.130017;113.315109,23.129996;113.315013,23.129931;113.314957,23.129883;113.314878,23.129787;113.314826,23.129657;113.314809,23.129566;113.314800,23.129479;113.314805,23.129353;113.314852,23.129249;113.314944,23.129158;113.315039,23.129106;113.315076,23.129084;113.315048,23.128854;113.315017,23.128294;113.315009,23.127821;113.314991,23.127279;113.314996,23.127188;113.314999,23.127122;113.315004,23.127051;113.315004,23.126915;113.315004,23.126772;113.315217,23.126577;113.315213,23.126536;113.315191,23.126220;113.315187,23.126102;113.315182,23.125981;113.315148,23.125516;113.315130,23.124926;113.315126,23.124362;113.315132,23.124363;113.315126,23.124362;113.315122,23.124175;113.315095,23.123459;113.315087,23.123277;113.315078,23.122934;113.315143,23.122730;113.315126,23.121636;113.315095,23.120929;113.315074,23.120577;113.315095,23.119058;113.315104,23.118628;113.315126,23.117747;113.315095,23.116723;113.315082,23.116454;113.315082,23.116450;113.315061,23.115951;113.315052,23.115234;113.315048,23.114831;113.315052,23.114314;113.315056,23.113668;113.315074,23.111545;113.315078,23.111363;113.315082,23.111181;113.315104,23.110586;113.315139,23.110256;113.315265,23.109575;113.315321,23.109314;113.315382,23.108971;113.315595,23.107899;113.315738,23.107174;113.315894,23.106415;113.315972,23.106007;113.316050,23.105373;113.316063,23.104983;113.316081,23.104414;113.316072,23.104245;113.316029,23.103598;113.315820,23.102765;113.315716,23.102040;113.315660,23.101554;113.315659,23.101559;113.315659,23.101562;113.315659,23.101542;113.315605,23.101168;113.315582,23.101021;113.315567,23.100760;113.315521,23.100338;113.315483,23.100126;113.315453,23.099766;113.315414,23.099497;113.315361,23.099201;113.315346,23.098871;113.315254,23.097881;113.315186,23.097418;113.315247,23.095278;113.315269,23.094952;113.315399,23.093454;113.315399,23.093386;113.315399,23.093325;113.315376,23.093100;113.315392,23.092730;113.315460,23.091787;113.315498,23.091307;113.315506,23.091307;113.315544,23.090864;113.315552,23.090637;113.315598,23.090118;113.315620,23.089857;113.315681,23.089249;113.315712,23.088820;113.315735,23.088663;113.315781,23.088215;113.315781,23.088165;113.315819,23.087540;113.315857,23.087076;113.315903,23.086424;113.315903,23.086342',\n",
       "       'bustimetag': '0',\n",
       "       'start_time': '0600',\n",
       "       'end_time': '2230',\n",
       "       'via_num': '8',\n",
       "       'via_stops': [{'name': '石牌村',\n",
       "         'id': '900000028902006',\n",
       "         'location': '113.339345,23.126606'},\n",
       "        {'name': '冼村',\n",
       "         'id': '900000028902007',\n",
       "         'location': '113.330890,23.127240'},\n",
       "        {'name': '人民日报广东分社',\n",
       "         'id': '900000028902008',\n",
       "         'location': '113.322517,23.127783'},\n",
       "        {'name': '天河',\n",
       "         'id': '900000028902009',\n",
       "         'location': '113.319557,23.127964'},\n",
       "        {'name': '南方报社',\n",
       "         'id': '900000028902010',\n",
       "         'location': '113.315126,23.124362'},\n",
       "        {'name': '五羊新村',\n",
       "         'id': '900000028902011',\n",
       "         'location': '113.315082,23.116454'},\n",
       "        {'name': '客村立交',\n",
       "         'id': '900000028902012',\n",
       "         'location': '113.315660,23.101554'},\n",
       "        {'name': '墩和',\n",
       "         'id': '900000028902013',\n",
       "         'location': '113.315498,23.091307'}]}]},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "   {'taxi': [],\n",
       "    'walking': {'origin': '113.315895,23.086311',\n",
       "     'destination': '113.317375,23.083706',\n",
       "     'distance': '667',\n",
       "     'duration': '571',\n",
       "     'steps': [{'instruction': '沿广州大道南步行347米左转',\n",
       "       'road': '广州大道南',\n",
       "       'distance': '347',\n",
       "       'duration': [],\n",
       "       'polyline': '113.315895,23.086311;113.315895,23.086084;113.315918,23.085716;113.315918,23.085526;113.315903,23.085213;113.315887,23.084879;113.315872,23.084675;113.315819,23.084114;113.315781,23.083767;113.315697,23.083164',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿逸景路步行23米往前走',\n",
       "       'road': '逸景路',\n",
       "       'distance': '23',\n",
       "       'duration': [],\n",
       "       'polyline': '113.315697,23.083160;113.315926,23.083185',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿敦丰路步行150米左转',\n",
       "       'road': '敦丰路',\n",
       "       'distance': '150',\n",
       "       'duration': [],\n",
       "       'polyline': '113.315926,23.083185;113.316139,23.083191;113.317383,23.083117',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行15米右转',\n",
       "       'road': [],\n",
       "       'distance': '15',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317383,23.083113;113.317368,23.083195;113.317352,23.083256',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行80米左转',\n",
       "       'road': [],\n",
       "       'distance': '80',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317345,23.083256;113.317596,23.083281;113.317749,23.083324;113.317848,23.083372;113.317879,23.083395;113.317894,23.083443;113.317879,23.083603',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行52米',\n",
       "       'road': [],\n",
       "       'distance': '52',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317879,23.083603;113.317581,23.083689;113.317375,23.083706',\n",
       "       'action': [],\n",
       "       'assistant_action': []}]},\n",
       "    'bus': {'buslines': []},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       " {'cost': '4.0',\n",
       "  'duration': '3251',\n",
       "  'nightflag': '0',\n",
       "  'walking_distance': '2989',\n",
       "  'distance': '10654',\n",
       "  'missed': '0',\n",
       "  'segments': [{'taxi': [],\n",
       "    'walking': {'origin': '113.351013,23.131449',\n",
       "     'destination': '113.339600,23.134882',\n",
       "     'distance': '1705',\n",
       "     'duration': '1461',\n",
       "     'steps': [{'instruction': '沿明湖南路步行35米左转',\n",
       "       'road': '明湖南路',\n",
       "       'distance': '35',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351013,23.131449;113.351357,23.131479',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真如东路步行219米向右前方行走',\n",
       "       'road': '真如东路',\n",
       "       'distance': '219',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351357,23.131479;113.351288,23.132196;113.351280,23.132383;113.351265,23.132973;113.351242,23.133142;113.351219,23.133255;113.351105,23.133425',\n",
       "       'action': '向右前方行走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真如东路步行311米右转',\n",
       "       'road': '真如东路',\n",
       "       'distance': '311',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351105,23.133425;113.351105,23.133646;113.350967,23.134319;113.350739,23.135208;113.350723,23.135242;113.350685,23.135265;113.350037,23.135382;113.349899,23.135382;113.349792,23.135382;113.349709,23.135386',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行25米左转',\n",
       "       'road': [],\n",
       "       'distance': '25',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349709,23.135386;113.349724,23.135477;113.349762,23.135612',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿中山大道西辅路步行48米往前走',\n",
       "       'road': '中山大道西辅路',\n",
       "       'distance': '48',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349762,23.135612;113.349297,23.135685',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿中山大道西步行389米往前走',\n",
       "       'road': '中山大道西',\n",
       "       'distance': '389',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349289,23.135685;113.347931,23.135933;113.347603,23.135994;113.347290,23.136055;113.347237,23.136068;113.346786,23.136150;113.345551,23.136272',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿天河路辅路步行510米左转',\n",
       "       'road': '天河路辅路',\n",
       "       'distance': '510',\n",
       "       'duration': [],\n",
       "       'polyline': '113.345543,23.136272;113.345161,23.136219;113.344955,23.136181;113.344780,23.136147;113.343987,23.135981;113.343697,23.135916;113.343346,23.135841;113.342941,23.135756;113.342758,23.135715;113.342560,23.135668;113.342316,23.135612;113.342033,23.135538;113.341805,23.135481;113.341431,23.135395;113.340897,23.135260;113.340675,23.135187;113.340637,23.135170',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行168米到达岗顶',\n",
       "       'road': [],\n",
       "       'distance': '168',\n",
       "       'duration': [],\n",
       "       'polyline': '113.340630,23.135174;113.340607,23.134878;113.340248,23.134731;113.340080,23.135078;113.339600,23.134882',\n",
       "       'action': [],\n",
       "       'assistant_action': '到达岗顶'}]},\n",
       "    'bus': {'buslines': [{'departure_stop': {'name': '岗顶',\n",
       "        'id': '440100023034005',\n",
       "        'location': '113.339601,23.134880'},\n",
       "       'arrival_stop': {'name': '大塘',\n",
       "        'id': '440100023034011',\n",
       "        'location': '113.321677,23.077974'},\n",
       "       'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "       'id': '440100023034',\n",
       "       'type': '地铁线路',\n",
       "       'distance': '7665',\n",
       "       'duration': '689',\n",
       "       'polyline': '113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135;113.331184,23.133151;113.330589,23.133198;113.328752,23.133418;113.328183,23.133479;113.327289,23.133514;113.326354,23.133514;113.325081,23.133547;113.324429,23.133601;113.323537,23.133645;113.322613,23.133645;113.322308,23.133591;113.321994,23.133405;113.321558,23.132971;113.321548,23.132550;113.321503,23.131138;113.321456,23.129680;113.321411,23.128625;113.321320,23.127081;113.321280,23.124987;113.321239,23.122875;113.321210,23.120814;113.321206,23.119293;113.321211,23.117802;113.321128,23.114424;113.321192,23.113719;113.321593,23.112339;113.322240,23.110987;113.322804,23.109739;113.323488,23.107913;113.323535,23.107730;113.323560,23.107597;113.323579,23.107443;113.323618,23.107080;113.323618,23.106375;113.323618,23.105619;113.323620,23.103908;113.323551,23.103271;113.323389,23.102569;113.323147,23.101868;113.322783,23.101174;113.320564,23.097706;113.320479,23.097563;113.320414,23.097400;113.320366,23.097218;113.320339,23.097045;113.320324,23.096867;113.320331,23.096197;113.320324,23.095371;113.320395,23.086128;113.321667,23.078469;113.321677,23.077974',\n",
       "       'bustimetag': '0',\n",
       "       'start_time': '0610',\n",
       "       'end_time': '2330',\n",
       "       'via_num': '5',\n",
       "       'via_stops': [{'name': '石牌桥',\n",
       "         'id': '440100023034006',\n",
       "         'location': '113.332124,23.133135'},\n",
       "        {'name': '体育西路',\n",
       "         'id': '440100023034007',\n",
       "         'location': '113.321503,23.131138'},\n",
       "        {'name': '珠江新城',\n",
       "         'id': '440100023034008',\n",
       "         'location': '113.321206,23.119293'},\n",
       "        {'name': '广州塔',\n",
       "         'id': '440100023034009',\n",
       "         'location': '113.323618,23.106375'},\n",
       "        {'name': '客村',\n",
       "         'id': '440100023034010',\n",
       "         'location': '113.320331,23.096197'}]}]},\n",
       "    'entrance': {'name': 'D口', 'location': '113.340599,23.134874'},\n",
       "    'exit': {'name': 'D口', 'location': '113.322090,23.078421'},\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "   {'taxi': [],\n",
       "    'walking': {'origin': '113.321671,23.077972',\n",
       "     'destination': '113.317375,23.083706',\n",
       "     'distance': '1284',\n",
       "     'duration': '1100',\n",
       "     'steps': [{'instruction': '步行115米右转',\n",
       "       'road': [],\n",
       "       'distance': '115',\n",
       "       'duration': [],\n",
       "       'polyline': '113.321671,23.077972;113.321671,23.078295;113.321671,23.078415;113.322090,23.078421;113.322105,23.078207',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿新滘中路步行329米右转',\n",
       "       'road': '新滘中路',\n",
       "       'distance': '329',\n",
       "       'duration': [],\n",
       "       'polyline': '113.322105,23.078203;113.322037,23.078190;113.321388,23.078012;113.321091,23.077969;113.320679,23.077969;113.320107,23.077969;113.319702,23.077969;113.318901,23.077961',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿上涌村南约大街步行105米往前走',\n",
       "       'road': '上涌村南约大街',\n",
       "       'distance': '105',\n",
       "       'duration': [],\n",
       "       'polyline': '113.318893,23.077955;113.318939,23.078398;113.318947,23.078911',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿乐敦路步行433米左转',\n",
       "       'road': '乐敦路',\n",
       "       'distance': '433',\n",
       "       'duration': [],\n",
       "       'polyline': '113.318947,23.078911;113.318985,23.079254;113.319016,23.079840;113.319016,23.080156;113.318985,23.080330;113.318939,23.080490;113.318832,23.080687;113.318817,23.080717;113.318710,23.080919;113.318596,23.081137;113.318565,23.081249;113.318550,23.081402;113.318573,23.081636;113.318619,23.081966;113.318634,23.082127;113.318649,23.082253;113.318634,23.082405;113.318649,23.082544;113.318672,23.082621;113.318733,23.082747',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿上冲中约新街一巷步行170米右转',\n",
       "       'road': '上冲中约新街一巷',\n",
       "       'distance': '170',\n",
       "       'duration': [],\n",
       "       'polyline': '113.318733,23.082747;113.318687,23.082735;113.318466,23.082722;113.318054,23.082752;113.317749,23.082804;113.317642,23.082830;113.317467,23.082939;113.317406,23.083012;113.317383,23.083113;113.317368,23.083195;113.317352,23.083256',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行80米左转',\n",
       "       'road': [],\n",
       "       'distance': '80',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317345,23.083256;113.317596,23.083281;113.317749,23.083324;113.317848,23.083372;113.317879,23.083395;113.317894,23.083443;113.317879,23.083603',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行52米',\n",
       "       'road': [],\n",
       "       'distance': '52',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317879,23.083603;113.317581,23.083689;113.317375,23.083706',\n",
       "       'action': [],\n",
       "       'assistant_action': []}]},\n",
       "    'bus': {'buslines': []},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       " {'cost': '2.0',\n",
       "  'duration': '4523',\n",
       "  'nightflag': '0',\n",
       "  'walking_distance': '1902',\n",
       "  'distance': '11733',\n",
       "  'missed': '0',\n",
       "  'segments': [{'taxi': [],\n",
       "    'walking': {'origin': '113.351013,23.131449',\n",
       "     'destination': '113.351860,23.125507',\n",
       "     'distance': '1045',\n",
       "     'duration': '895',\n",
       "     'steps': [{'instruction': '沿明湖南路步行143米左转',\n",
       "       'road': '明湖南路',\n",
       "       'distance': '143',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351013,23.131449;113.351013,23.131449;113.350510,23.131393;113.350166,23.131359;113.349617,23.131298',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真茹路步行456米往前走',\n",
       "       'road': '真茹路',\n",
       "       'distance': '456',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349617,23.131294;113.349609,23.131102;113.349594,23.130243;113.349594,23.129940;113.349602,23.129696;113.349617,23.128382;113.349609,23.128311;113.349617,23.128256;113.349602,23.127144',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真如路步行132米左转',\n",
       "       'road': '真如路',\n",
       "       'distance': '132',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349602,23.127140;113.349609,23.127052;113.349617,23.127005;113.349625,23.126862;113.349655,23.126518;113.349678,23.126249;113.349693,23.126106;113.349693,23.126059;113.349709,23.125929',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真如东路步行165米右转',\n",
       "       'road': '真如东路',\n",
       "       'distance': '165',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349709,23.125925;113.350487,23.125790;113.350983,23.125769;113.351112,23.125803;113.351181,23.125841;113.351288,23.125908',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行69米往前走',\n",
       "       'road': [],\n",
       "       'distance': '69',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351288,23.125902;113.351341,23.125820;113.351486,23.125967;113.351601,23.125769;113.351715,23.125793',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行59米右转',\n",
       "       'road': [],\n",
       "       'distance': '59',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351715,23.125793;113.351852,23.125813;113.351936,23.125799;113.351967,23.125772;113.352028,23.125729;113.352043,23.125687;113.352066,23.125517',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行21米到达华侨医院(潭村)',\n",
       "       'road': [],\n",
       "       'distance': '21',\n",
       "       'duration': [],\n",
       "       'polyline': '113.352066,23.125513;113.351860,23.125507',\n",
       "       'action': [],\n",
       "       'assistant_action': '到达华侨医院(潭村)'}]},\n",
       "    'bus': {'buslines': [{'departure_stop': {'name': '华侨医院(潭村)',\n",
       "        'id': '440100016909035',\n",
       "        'location': '113.351713,23.125436'},\n",
       "       'arrival_stop': {'name': '广州大道南路口',\n",
       "        'id': '440100016909022',\n",
       "        'location': '113.319069,23.077959'},\n",
       "       'name': '583路(员村一横路总站--芳村西塱总站)',\n",
       "       'id': '440100016909',\n",
       "       'type': '普通公交线路',\n",
       "       'distance': '9831',\n",
       "       'duration': '2893',\n",
       "       'polyline': '113.351713,23.125436;113.351562,23.125319;113.351051,23.125387;113.350380,23.125525;113.348694,23.125820;113.348137,23.125938;113.347801,23.125998;113.347450,23.126015;113.347298,23.126011;113.346436,23.126080;113.346230,23.126215;113.346016,23.126221;113.345619,23.126234;113.344696,23.126293;113.344032,23.126343;113.343956,23.126347;113.343887,23.126354;113.343674,23.126375;113.343460,23.126389;113.343292,23.126406;113.343117,23.126415;113.342972,23.126425;113.342819,23.126431;113.342323,23.126467;113.341743,23.126507;113.341522,23.126520;113.340981,23.126549;113.340614,23.126549;113.340424,23.126524;113.339592,23.126585;113.339470,23.126593;113.338676,23.126657;113.338058,23.126684;113.337997,23.126694;113.337830,23.126694;113.337746,23.126766;113.337410,23.126793;113.336723,23.126844;113.336571,23.126858;113.335106,23.126966;113.334961,23.126976;113.334282,23.127014;113.334152,23.127022;113.333939,23.127035;113.333717,23.127045;113.333557,23.127001;113.333443,23.126953;113.333244,23.126808;113.333176,23.126722;113.333168,23.126398;113.333168,23.126221;113.333191,23.125843;113.333229,23.125433;113.333244,23.124969;113.333275,23.124340;113.333397,23.124149;113.333397,23.123671;113.333344,23.123537;113.333336,23.123329;113.333336,23.123274;113.333298,23.123116;113.333244,23.123043;113.333122,23.122978;113.332886,23.122965;113.331841,23.123043;113.330780,23.123129;113.330536,23.123152;113.330421,23.123159;113.330193,23.123125;113.329697,23.123165;113.329376,23.123196;113.328613,23.123251;113.328178,23.123363;113.327850,23.123091;113.327904,23.122473;113.327904,23.122177;113.327904,23.121723;113.327858,23.121151;113.327858,23.120970;113.327843,23.119867;113.327843,23.119427;113.327843,23.119328;113.327715,23.119145;113.327628,23.119062;113.327576,23.118971;113.327492,23.119040;113.326553,23.119089;113.326347,23.119112;113.326137,23.119121;113.326094,23.119103;113.326042,23.119041;113.326050,23.118849;113.326416,23.118816;113.326782,23.118784;113.327469,23.118725;113.327827,23.118752;113.328087,23.118729;113.328453,23.118706;113.329308,23.118647;113.329674,23.118616;113.330666,23.118538;113.330734,23.118534;113.331558,23.118460;113.332962,23.118338;113.333282,23.118042;113.333496,23.117760;113.333511,23.117262;113.333534,23.116739;113.333534,23.116220;113.333557,23.115973;113.333656,23.115973;113.333672,23.115492;113.333672,23.115236;113.333717,23.114389;113.333771,23.113216;113.333794,23.112652;113.333900,23.109680;113.333954,23.108215;113.334015,23.106075;113.333900,23.105869;113.333855,23.105127;113.333855,23.104870;113.333893,23.104244;113.333946,23.103930;113.334030,23.103369;113.334152,23.102430;113.334160,23.102278;113.334152,23.102104;113.334122,23.101917;113.333984,23.101366;113.333954,23.101143;113.333954,23.100946;113.333977,23.100807;113.334015,23.100647;113.334091,23.100491;113.334175,23.100328;113.334282,23.100201;113.334557,23.099913;113.334877,23.099583;113.334961,23.099504;113.335899,23.098537;113.336060,23.098377;113.336273,23.098169;113.336601,23.097891;113.336655,23.097834;113.336693,23.097782;113.336700,23.097733;113.336723,23.097631;113.336021,23.096601;113.335892,23.096458;113.335808,23.096376;113.335678,23.096279;113.335541,23.096184;113.335342,23.096094;113.335030,23.095980;113.334961,23.095964;113.334808,23.095934;113.334610,23.095901;113.334282,23.095911;113.334221,23.095915;113.333885,23.095947;113.333633,23.095974;113.333374,23.095921;113.333176,23.095482;113.333061,23.095236;113.332855,23.094791;113.332825,23.094736;113.332830,23.094731;113.332760,23.094553;113.332695,23.094414;113.332561,23.094106;113.332491,23.093915;113.332418,23.093572;113.332387,23.093346;113.332378,23.093264;113.332378,23.093260;113.332378,23.092986;113.332422,23.092687;113.332565,23.092092;113.332643,23.091823;113.332704,23.091597;113.332808,23.091441;113.332860,23.091276;113.332947,23.090955;113.333008,23.090608;113.333008,23.090395;113.332969,23.090069;113.332938,23.089900;113.332882,23.089618;113.332852,23.089462;113.332782,23.089141;113.332678,23.088698;113.332591,23.088307;113.332387,23.087391;113.332188,23.086441;113.332153,23.086185;113.332153,23.086189;113.332153,23.086184;113.332108,23.085798;113.332069,23.085365;113.332062,23.084940;113.332054,23.084410;113.332054,23.083488;113.332054,23.083437;113.332054,23.083307;113.332054,23.082895;113.332054,23.082644;113.332054,23.082458;113.332054,23.082275;113.332047,23.081047;113.332039,23.080738;113.332039,23.080505;113.331894,23.079874;113.331825,23.078999;113.331726,23.078667;113.331665,23.078524;113.331596,23.078421;113.331520,23.078339;113.331451,23.078274;113.331139,23.078083;113.330833,23.078074;113.330086,23.078070;113.329674,23.078074;113.329628,23.078070;113.329597,23.078056;113.329521,23.077991;113.329048,23.077986;113.328499,23.077986;113.328293,23.077986;113.327919,23.077986;113.327194,23.077986;113.326149,23.077972;113.326141,23.077972;113.325859,23.077972;113.325790,23.077972;113.325691,23.077972;113.325348,23.078074;113.324287,23.078339;113.323975,23.078369;113.323128,23.078356;113.322441,23.078320;113.322037,23.078207;113.321396,23.077972;113.321083,23.077965;113.320679,23.077965;113.320107,23.077972;113.319069,23.077959',\n",
       "       'bustimetag': '0',\n",
       "       'start_time': '0630',\n",
       "       'end_time': '2200',\n",
       "       'via_num': '14',\n",
       "       'via_stops': [{'name': '国防大厦',\n",
       "         'id': '440100016909008',\n",
       "         'location': '113.341743,23.126507'},\n",
       "        {'name': '石牌村',\n",
       "         'id': '440100016909009',\n",
       "         'location': '113.339592,23.126585'},\n",
       "        {'name': '猎德大道北',\n",
       "         'id': '440100016909042',\n",
       "         'location': '113.333336,23.123329'},\n",
       "        {'name': '金穗路',\n",
       "         'id': '440100016909011',\n",
       "         'location': '113.329697,23.123165'},\n",
       "        {'name': '冼村路中',\n",
       "         'id': '440100016909012',\n",
       "         'location': '113.327843,23.119867'},\n",
       "        {'name': '猎德',\n",
       "         'id': '440100016909013',\n",
       "         'location': '113.329674,23.118616'},\n",
       "        {'name': '猎德东',\n",
       "         'id': '440100016909014',\n",
       "         'location': '113.331558,23.118460'},\n",
       "        {'name': '磨碟沙路站',\n",
       "         'id': '440100016909043',\n",
       "         'location': '113.335899,23.098537'},\n",
       "        {'name': '赤岗',\n",
       "         'id': '440100016909036',\n",
       "         'location': '113.332825,23.094736'},\n",
       "        {'name': '江海大道中',\n",
       "         'id': '440100016909017',\n",
       "         'location': '113.332643,23.091823'},\n",
       "        {'name': '大塘(江海大道)站',\n",
       "         'id': '440100016909037',\n",
       "         'location': '113.332153,23.086185'},\n",
       "        {'name': '龙潭村',\n",
       "         'id': '440100016909019',\n",
       "         'location': '113.332054,23.082644'},\n",
       "        {'name': '龙潭立交西',\n",
       "         'id': '440100016909020',\n",
       "         'location': '113.328293,23.077986'},\n",
       "        {'name': '聚德西路口',\n",
       "         'id': '440100016909021',\n",
       "         'location': '113.326149,23.077972'}]}]},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "   {'taxi': [],\n",
       "    'walking': {'origin': '113.319061,23.077955',\n",
       "     'destination': '113.317375,23.083706',\n",
       "     'distance': '857',\n",
       "     'duration': '734',\n",
       "     'steps': [{'instruction': '沿新滘中路步行17米右转',\n",
       "       'road': '新滘中路',\n",
       "       'distance': '17',\n",
       "       'duration': [],\n",
       "       'polyline': '113.319061,23.077955;113.318901,23.077955',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿上涌村南约大街步行105米往前走',\n",
       "       'road': '上涌村南约大街',\n",
       "       'distance': '105',\n",
       "       'duration': [],\n",
       "       'polyline': '113.318893,23.077955;113.318939,23.078398;113.318947,23.078911',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿乐敦路步行433米左转',\n",
       "       'road': '乐敦路',\n",
       "       'distance': '433',\n",
       "       'duration': [],\n",
       "       'polyline': '113.318947,23.078911;113.318985,23.079254;113.319016,23.079840;113.319016,23.080156;113.318985,23.080330;113.318939,23.080490;113.318832,23.080687;113.318817,23.080717;113.318710,23.080919;113.318596,23.081137;113.318565,23.081249;113.318550,23.081402;113.318573,23.081636;113.318619,23.081966;113.318634,23.082127;113.318649,23.082253;113.318634,23.082405;113.318649,23.082544;113.318672,23.082621;113.318733,23.082747',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿上冲中约新街一巷步行170米右转',\n",
       "       'road': '上冲中约新街一巷',\n",
       "       'distance': '170',\n",
       "       'duration': [],\n",
       "       'polyline': '113.318733,23.082747;113.318687,23.082735;113.318466,23.082722;113.318054,23.082752;113.317749,23.082804;113.317642,23.082830;113.317467,23.082939;113.317406,23.083012;113.317383,23.083113;113.317368,23.083195;113.317352,23.083256',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行80米左转',\n",
       "       'road': [],\n",
       "       'distance': '80',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317345,23.083256;113.317596,23.083281;113.317749,23.083324;113.317848,23.083372;113.317879,23.083395;113.317894,23.083443;113.317879,23.083603',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行52米',\n",
       "       'road': [],\n",
       "       'distance': '52',\n",
       "       'duration': [],\n",
       "       'polyline': '113.317879,23.083603;113.317581,23.083689;113.317375,23.083706',\n",
       "       'action': [],\n",
       "       'assistant_action': []}]},\n",
       "    'bus': {'buslines': []},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       " {'cost': '6.0',\n",
       "  'duration': '3549',\n",
       "  'nightflag': '0',\n",
       "  'walking_distance': '2372',\n",
       "  'distance': '11107',\n",
       "  'missed': '0',\n",
       "  'segments': [{'taxi': [],\n",
       "    'walking': {'origin': '113.351013,23.131449',\n",
       "     'destination': '113.339600,23.134882',\n",
       "     'distance': '1705',\n",
       "     'duration': '1461',\n",
       "     'steps': [{'instruction': '沿明湖南路步行35米左转',\n",
       "       'road': '明湖南路',\n",
       "       'distance': '35',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351013,23.131449;113.351357,23.131479',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真如东路步行219米向右前方行走',\n",
       "       'road': '真如东路',\n",
       "       'distance': '219',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351357,23.131479;113.351288,23.132196;113.351280,23.132383;113.351265,23.132973;113.351242,23.133142;113.351219,23.133255;113.351105,23.133425',\n",
       "       'action': '向右前方行走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿真如东路步行311米右转',\n",
       "       'road': '真如东路',\n",
       "       'distance': '311',\n",
       "       'duration': [],\n",
       "       'polyline': '113.351105,23.133425;113.351105,23.133646;113.350967,23.134319;113.350739,23.135208;113.350723,23.135242;113.350685,23.135265;113.350037,23.135382;113.349899,23.135382;113.349792,23.135382;113.349709,23.135386',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行25米左转',\n",
       "       'road': [],\n",
       "       'distance': '25',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349709,23.135386;113.349724,23.135477;113.349762,23.135612',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿中山大道西辅路步行48米往前走',\n",
       "       'road': '中山大道西辅路',\n",
       "       'distance': '48',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349762,23.135612;113.349297,23.135685',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿中山大道西步行389米往前走',\n",
       "       'road': '中山大道西',\n",
       "       'distance': '389',\n",
       "       'duration': [],\n",
       "       'polyline': '113.349289,23.135685;113.347931,23.135933;113.347603,23.135994;113.347290,23.136055;113.347237,23.136068;113.346786,23.136150;113.345551,23.136272',\n",
       "       'action': '往前走',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿天河路辅路步行510米左转',\n",
       "       'road': '天河路辅路',\n",
       "       'distance': '510',\n",
       "       'duration': [],\n",
       "       'polyline': '113.345543,23.136272;113.345161,23.136219;113.344955,23.136181;113.344780,23.136147;113.343987,23.135981;113.343697,23.135916;113.343346,23.135841;113.342941,23.135756;113.342758,23.135715;113.342560,23.135668;113.342316,23.135612;113.342033,23.135538;113.341805,23.135481;113.341431,23.135395;113.340897,23.135260;113.340675,23.135187;113.340637,23.135170',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行168米到达岗顶',\n",
       "       'road': [],\n",
       "       'distance': '168',\n",
       "       'duration': [],\n",
       "       'polyline': '113.340630,23.135174;113.340607,23.134878;113.340248,23.134731;113.340080,23.135078;113.339600,23.134882',\n",
       "       'action': [],\n",
       "       'assistant_action': '到达岗顶'}]},\n",
       "    'bus': {'buslines': [{'departure_stop': {'name': '岗顶',\n",
       "        'id': '440100023034005',\n",
       "        'location': '113.339601,23.134880'},\n",
       "       'arrival_stop': {'name': '大塘',\n",
       "        'id': '440100023034011',\n",
       "        'location': '113.321677,23.077974'},\n",
       "       'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "       'id': '440100023034',\n",
       "       'type': '地铁线路',\n",
       "       'distance': '7665',\n",
       "       'duration': '689',\n",
       "       'polyline': '113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135;113.331184,23.133151;113.330589,23.133198;113.328752,23.133418;113.328183,23.133479;113.327289,23.133514;113.326354,23.133514;113.325081,23.133547;113.324429,23.133601;113.323537,23.133645;113.322613,23.133645;113.322308,23.133591;113.321994,23.133405;113.321558,23.132971;113.321548,23.132550;113.321503,23.131138;113.321456,23.129680;113.321411,23.128625;113.321320,23.127081;113.321280,23.124987;113.321239,23.122875;113.321210,23.120814;113.321206,23.119293;113.321211,23.117802;113.321128,23.114424;113.321192,23.113719;113.321593,23.112339;113.322240,23.110987;113.322804,23.109739;113.323488,23.107913;113.323535,23.107730;113.323560,23.107597;113.323579,23.107443;113.323618,23.107080;113.323618,23.106375;113.323618,23.105619;113.323620,23.103908;113.323551,23.103271;113.323389,23.102569;113.323147,23.101868;113.322783,23.101174;113.320564,23.097706;113.320479,23.097563;113.320414,23.097400;113.320366,23.097218;113.320339,23.097045;113.320324,23.096867;113.320331,23.096197;113.320324,23.095371;113.320395,23.086128;113.321667,23.078469;113.321677,23.077974',\n",
       "       'bustimetag': '0',\n",
       "       'start_time': '0610',\n",
       "       'end_time': '2330',\n",
       "       'via_num': '5',\n",
       "       'via_stops': [{'name': '石牌桥',\n",
       "         'id': '440100023034006',\n",
       "         'location': '113.332124,23.133135'},\n",
       "        {'name': '体育西路',\n",
       "         'id': '440100023034007',\n",
       "         'location': '113.321503,23.131138'},\n",
       "        {'name': '珠江新城',\n",
       "         'id': '440100023034008',\n",
       "         'location': '113.321206,23.119293'},\n",
       "        {'name': '广州塔',\n",
       "         'id': '440100023034009',\n",
       "         'location': '113.323618,23.106375'},\n",
       "        {'name': '客村',\n",
       "         'id': '440100023034010',\n",
       "         'location': '113.320331,23.096197'}]}]},\n",
       "    'entrance': {'name': 'D口', 'location': '113.340599,23.134874'},\n",
       "    'exit': {'name': 'D口', 'location': '113.322090,23.078421'},\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "   {'taxi': [],\n",
       "    'walking': {'origin': '113.321671,23.077972',\n",
       "     'destination': '113.319077,23.077959',\n",
       "     'distance': '425',\n",
       "     'duration': '364',\n",
       "     'steps': [{'instruction': '步行115米右转',\n",
       "       'road': [],\n",
       "       'distance': '115',\n",
       "       'duration': [],\n",
       "       'polyline': '113.321671,23.077972;113.321671,23.078295;113.321671,23.078417;113.322090,23.078421;113.322105,23.078207',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '沿新滘中路步行310米到达广州大道南路口',\n",
       "       'road': '新滘中路',\n",
       "       'distance': '310',\n",
       "       'duration': [],\n",
       "       'polyline': '113.322105,23.078203;113.322037,23.078190;113.321388,23.078012;113.321091,23.077969;113.320679,23.077969;113.320107,23.077969;113.319702,23.077969;113.319077,23.077959',\n",
       "       'action': [],\n",
       "       'assistant_action': '到达广州大道南路口'}]},\n",
       "    'bus': {'buslines': [{'departure_stop': {'name': '广州大道南路口',\n",
       "        'id': '440100016436014',\n",
       "        'location': '113.319077,23.077959'},\n",
       "       'arrival_stop': {'name': '园艺场',\n",
       "        'id': '440100016436016',\n",
       "        'location': '113.316101,23.084681'},\n",
       "       'name': '264路(仑头总站--广仁路总站)',\n",
       "       'id': '440100016436',\n",
       "       'type': '普通公交线路',\n",
       "       'distance': '1070',\n",
       "       'duration': '827',\n",
       "       'polyline': '113.319077,23.077959;113.318901,23.077959;113.318352,23.077955;113.318237,23.078024;113.318199,23.078033;113.317810,23.078051;113.317032,23.078064;113.316238,23.078070;113.315903,23.078091;113.315781,23.078119;113.315689,23.078165;113.315460,23.078306;113.315292,23.078442;113.315254,23.078489;113.315193,23.078560;113.315155,23.078625;113.315086,23.078756;113.315056,23.078844;113.314972,23.079350;113.315041,23.079586;113.315170,23.080055;113.315239,23.080347;113.315353,23.080711;113.315536,23.081375;113.315712,23.082014;113.315727,23.082041;113.315742,23.082157;113.315758,23.082253;113.315758,23.082275;113.315895,23.083000;113.315918,23.083187;113.316010,23.083733;113.316078,23.084339;113.316101,23.084681',\n",
       "       'bustimetag': '0',\n",
       "       'start_time': '0600',\n",
       "       'end_time': '2230',\n",
       "       'via_num': '1',\n",
       "       'via_stops': [{'name': '上冲',\n",
       "         'id': '440100016436015',\n",
       "         'location': '113.315727,23.082041'}]}]},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "   {'taxi': [],\n",
       "    'walking': {'origin': '113.316101,23.084730',\n",
       "     'destination': '113.317375,23.083712',\n",
       "     'distance': '242',\n",
       "     'duration': '207',\n",
       "     'steps': [{'instruction': '沿广州大道南步行43米左转',\n",
       "       'road': '广州大道南',\n",
       "       'distance': '43',\n",
       "       'duration': [],\n",
       "       'polyline': '113.316101,23.084730;113.316078,23.084345',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行42米右转',\n",
       "       'road': [],\n",
       "       'distance': '42',\n",
       "       'duration': [],\n",
       "       'polyline': '113.316078,23.084341;113.316391,23.084345;113.316498,23.084345',\n",
       "       'action': '右转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行94米左转',\n",
       "       'road': [],\n",
       "       'distance': '94',\n",
       "       'duration': [],\n",
       "       'polyline': '113.316498,23.084341;113.316505,23.083858;113.316559,23.083784;113.316780,23.083586',\n",
       "       'action': '左转',\n",
       "       'assistant_action': []},\n",
       "      {'instruction': '步行63米',\n",
       "       'road': [],\n",
       "       'distance': '63',\n",
       "       'duration': [],\n",
       "       'polyline': '113.316780,23.083580;113.317001,23.083668;113.317245,23.083719;113.317375,23.083712',\n",
       "       'action': [],\n",
       "       'assistant_action': []}]},\n",
       "    'bus': {'buslines': []},\n",
       "    'entrance': [],\n",
       "    'exit': [],\n",
       "    'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()['route']['transits']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>沿明湖南路步行143米左转</td>\n",
       "      <td>明湖南路</td>\n",
       "      <td>143</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.351013,23.131449;113.351013,23.131449;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>沿真茹路步行456米往前走</td>\n",
       "      <td>真茹路</td>\n",
       "      <td>456</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.349617,23.131294;113.349609,23.131102;113....</td>\n",
       "      <td>往前走</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>沿真如路步行132米左转</td>\n",
       "      <td>真如路</td>\n",
       "      <td>132</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.349602,23.127140;113.349609,23.127052;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>沿真如东路步行40米到达华侨医院(潭村)2站</td>\n",
       "      <td>真如东路</td>\n",
       "      <td>40</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.349709,23.125925;113.350098,23.125854</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达华侨医院(潭村)2站</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              instruction  road distance duration  \\\n",
       "0           沿明湖南路步行143米左转  明湖南路      143       []   \n",
       "1           沿真茹路步行456米往前走   真茹路      456       []   \n",
       "2            沿真如路步行132米左转   真如路      132       []   \n",
       "3  沿真如东路步行40米到达华侨医院(潭村)2站  真如东路       40       []   \n",
       "\n",
       "                                            polyline action assistant_action  \n",
       "0  113.351013,23.131449;113.351013,23.131449;113....     左转               []  \n",
       "1  113.349617,23.131294;113.349609,23.131102;113....    往前走               []  \n",
       "2  113.349602,23.127140;113.349609,23.127052;113....     左转               []  \n",
       "3          113.349709,23.125925;113.350098,23.125854     []     到达华侨医院(潭村)2站  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>石牌村</td>\n",
       "      <td>440100016867014</td>\n",
       "      <td>113.339345,23.126606</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>冼村</td>\n",
       "      <td>440100016867015</td>\n",
       "      <td>113.330877,23.127244</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>人民日报广东分社</td>\n",
       "      <td>440100016867016</td>\n",
       "      <td>113.322533,23.127777</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>天河</td>\n",
       "      <td>440100016867017</td>\n",
       "      <td>113.319557,23.127964</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>南方报社</td>\n",
       "      <td>440100016867018</td>\n",
       "      <td>113.315126,23.124392</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>五羊新村</td>\n",
       "      <td>440100016867019</td>\n",
       "      <td>113.315082,23.116458</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>客村立交</td>\n",
       "      <td>440100016867020</td>\n",
       "      <td>113.315651,23.101484</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>墩和</td>\n",
       "      <td>440100016867021</td>\n",
       "      <td>113.315514,23.091242</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       name               id              location\n",
       "0       石牌村  440100016867014  113.339345,23.126606\n",
       "1        冼村  440100016867015  113.330877,23.127244\n",
       "2  人民日报广东分社  440100016867016  113.322533,23.127777\n",
       "3        天河  440100016867017  113.319557,23.127964\n",
       "4      南方报社  440100016867018  113.315126,23.124392\n",
       "5      五羊新村  440100016867019  113.315082,23.116458\n",
       "6      客村立交  440100016867020  113.315651,23.101484\n",
       "7        墩和  440100016867021  113.315514,23.091242"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>沿广州大道南步行155米左转</td>\n",
       "      <td>广州大道南</td>\n",
       "      <td>155</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.315857,23.084562;113.315819,23.084114;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>沿逸景路步行23米往前走</td>\n",
       "      <td>逸景路</td>\n",
       "      <td>23</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.315697,23.083160;113.315926,23.083185</td>\n",
       "      <td>往前走</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>沿敦丰路步行150米左转</td>\n",
       "      <td>敦丰路</td>\n",
       "      <td>150</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.315926,23.083185;113.316139,23.083191;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>步行15米右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>15</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.317383,23.083113;113.317368,23.083195;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>步行80米左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>80</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.317345,23.083256;113.317596,23.083281;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>步行52米</td>\n",
       "      <td>[]</td>\n",
       "      <td>52</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.317879,23.083603;113.317581,23.083689;113....</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "      instruction   road distance duration  \\\n",
       "0  沿广州大道南步行155米左转  广州大道南      155       []   \n",
       "1    沿逸景路步行23米往前走    逸景路       23       []   \n",
       "2    沿敦丰路步行150米左转    敦丰路      150       []   \n",
       "3         步行15米右转     []       15       []   \n",
       "4         步行80米左转     []       80       []   \n",
       "5           步行52米     []       52       []   \n",
       "\n",
       "                                            polyline action assistant_action  \n",
       "0  113.315857,23.084562;113.315819,23.084114;113....     左转               []  \n",
       "1          113.315697,23.083160;113.315926,23.083185    往前走               []  \n",
       "2  113.315926,23.083185;113.316139,23.083191;113....     左转               []  \n",
       "3  113.317383,23.083113;113.317368,23.083195;113....     右转               []  \n",
       "4  113.317345,23.083256;113.317596,23.083281;113....     左转               []  \n",
       "5  113.317879,23.083603;113.317581,23.083689;113....     []               []  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "明湖南路_线路一_walking_start = pd.json_normalize(r.json()['route']['transits'][0]['segments'][0]['walking']['steps'])\n",
    "display(明湖南路_线路一_walking_start)\n",
    "明湖南路_线路一_bus_start = pd.json_normalize(r.json()['route']['transits'][0]['segments'][0]['bus']['buslines'][0]['via_stops'])\n",
    "display(明湖南路_线路一_bus_start)\n",
    "明湖南路_线路一_walking_stop = pd.json_normalize(r.json()['route']['transits'][0]['segments'][1]['walking']['steps'])\n",
    "display(明湖南路_线路一_walking_stop)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [],
   "source": [
    "def bus(key,origin,destination,city,extensions = \"base\",strategy = 0,nightflag = None,date = None,time = None,sig = None,output = \"json\",callback = None)->str:\n",
    "    \"\"\"获取高德API的公交路径规划\n",
    "温馨提示：key是指高德api的密钥，请先去注册；\n",
    "          origin是指起始地点，destination是目的地，city是城市/跨城规划时的起点城市\n",
    "          具体请查看：https://lbs.amap.com/api/webservice/guide/api/direction\n",
    "    \"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/direction/transit/integrated?parameters'\n",
    "    params = {'key':key,\n",
    "          'origin':origin,\n",
    "          'destination':destination,\n",
    "          'city':city,\n",
    "          }\n",
    "    response = requests.get(url,params = params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '4',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.668051,23.600869',\n",
       "  'distance': '4273',\n",
       "  'taxi_cost': '17',\n",
       "  'transits': [{'cost': '4.0',\n",
       "    'duration': '5116',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '956',\n",
       "    'distance': '14863',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679016,23.632349',\n",
       "       'destination': '113.676613,23.631285',\n",
       "       'distance': '513',\n",
       "       'duration': '439',\n",
       "       'steps': [{'instruction': '步行57米右转',\n",
       "         'road': [],\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679016,23.632349;113.678528,23.632097',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行47米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '47',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行218米左转',\n",
       "         'road': [],\n",
       "         'distance': '218',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行191米到达中大南方学院',\n",
       "         'road': '博学路',\n",
       "         'distance': '191',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达中大南方学院'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院',\n",
       "          'id': '900000111141002',\n",
       "          'location': '113.676613,23.631281'},\n",
       "         'arrival_stop': {'name': '宣星路口',\n",
       "          'id': '900000111141010',\n",
       "          'location': '113.628891,23.602587'},\n",
       "         'name': '从15路(中大南方学院--从化汽车站总站)',\n",
       "         'id': '900000111141',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '9953',\n",
       "         'duration': '2201',\n",
       "         'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987;113.649731,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644640,23.621901;113.644635,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632957,23.615774;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0900',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '7',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000111141003',\n",
       "           'location': '113.671707,23.643766'},\n",
       "          {'name': '交警温泉中队',\n",
       "           'id': '900000111141029',\n",
       "           'location': '113.656944,23.630304'},\n",
       "          {'name': '冲口',\n",
       "           'id': '900000111141022',\n",
       "           'location': '113.649731,23.624987'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000111141006',\n",
       "           'location': '113.644640,23.621901'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000111141023',\n",
       "           'location': '113.638325,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111141008',\n",
       "           'location': '113.632957,23.615774'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000111141024',\n",
       "           'location': '113.630844,23.610802'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.628891,23.602587',\n",
       "       'destination': '113.628723,23.601263',\n",
       "       'distance': '263',\n",
       "       'duration': '225',\n",
       "       'steps': [{'instruction': '沿温泉大道步行52米右转',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.628891,23.602587;113.628998,23.603046',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行13米右转',\n",
       "         'road': [],\n",
       "         'distance': '13',\n",
       "         'duration': [],\n",
       "         'polyline': '113.629005,23.603046;113.629120,23.603025',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行198米到达宣星路口',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '198',\n",
       "         'duration': [],\n",
       "         'polyline': '113.629120,23.603022;113.628906,23.602083;113.628815,23.601658;113.628723,23.601263',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达宣星路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '宣星路口',\n",
       "          'id': '900000111131022',\n",
       "          'location': '113.628720,23.601263'},\n",
       "         'arrival_stop': {'name': '教师村',\n",
       "          'id': '900000111131041',\n",
       "          'location': '113.666658,23.601437'},\n",
       "         'name': '从14路(从化汽车站总站--高坣总站)',\n",
       "         'id': '900000111131',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '3954',\n",
       "         'duration': '2096',\n",
       "         'polyline': '113.628720,23.601263;113.628720,23.601259;113.628811,23.601658;113.629280,23.601780;113.630113,23.601445;113.630365,23.601354;113.632248,23.600681;113.633785,23.600347;113.635725,23.599957;113.636810,23.599731;113.637335,23.599657;113.638103,23.599596;113.638542,23.599579;113.639266,23.599588;113.639427,23.599592;113.642270,23.599570;113.642578,23.599570;113.643043,23.599622;113.643294,23.599653;113.643290,23.599653;113.643581,23.599688;113.643624,23.599661;113.643911,23.599657;113.644232,23.599605;113.644449,23.599614;113.645451,23.599935;113.646454,23.600278;113.646589,23.600347;113.646658,23.600417;113.646931,23.600595;113.649835,23.601749;113.649935,23.601797;113.650030,23.601862;113.650937,23.602674;113.651063,23.602752;113.651176,23.602786;113.651367,23.602826;113.651584,23.602847;113.651845,23.602847;113.652001,23.602830;113.652504,23.602708;113.652839,23.602582;113.652999,23.602548;113.653181,23.602543;113.653264,23.602561;113.653659,23.602752;113.653802,23.602799;113.654605,23.602977;113.655122,23.603069;113.655243,23.603077;113.655391,23.603069;113.655799,23.602999;113.656055,23.602934;113.656302,23.602847;113.657083,23.602530;113.657300,23.602461;113.657500,23.602418;113.659041,23.602205;113.659501,23.602144;113.660009,23.602170;113.660386,23.602144;113.661046,23.601988;113.661115,23.601975;113.661115,23.601970;113.661115,23.601975;113.661845,23.601801;113.662044,23.601740;113.662687,23.601458;113.662951,23.601385;113.663980,23.601424;113.664275,23.601445;113.664549,23.601489;113.664596,23.601497;113.664714,23.601497;113.665464,23.601280;113.665655,23.601233;113.665864,23.601202;113.666658,23.601437',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0700',\n",
       "         'end_time': '1840',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '宣星村委',\n",
       "           'id': '900000111131038',\n",
       "           'location': '113.643294,23.599653'},\n",
       "          {'name': '鸡笼岗路口',\n",
       "           'id': '900000111131040',\n",
       "           'location': '113.661115,23.601975'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.666656,23.601437',\n",
       "       'destination': '113.667778,23.600882',\n",
       "       'distance': '180',\n",
       "       'duration': '154',\n",
       "       'steps': [{'instruction': '沿龙宣街步行86米右转',\n",
       "         'road': '龙宣街',\n",
       "         'distance': '86',\n",
       "         'duration': [],\n",
       "         'polyline': '113.666656,23.601437;113.666763,23.601467;113.667221,23.601614;113.667458,23.601688',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿龙泉路步行94米',\n",
       "         'road': '龙泉路',\n",
       "         'distance': '94',\n",
       "         'duration': [],\n",
       "         'polyline': '113.667458,23.601688;113.667564,23.601440;113.667671,23.601164;113.667778,23.600882',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '6109',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '637',\n",
       "    'distance': '24130',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679016,23.632349',\n",
       "       'destination': '113.676613,23.631285',\n",
       "       'distance': '513',\n",
       "       'duration': '439',\n",
       "       'steps': [{'instruction': '步行57米右转',\n",
       "         'road': [],\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679016,23.632349;113.678528,23.632097',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行47米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '47',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行218米左转',\n",
       "         'road': [],\n",
       "         'distance': '218',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行191米到达中大南方学院',\n",
       "         'road': '博学路',\n",
       "         'distance': '191',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达中大南方学院'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院',\n",
       "          'id': '900000111141002',\n",
       "          'location': '113.676613,23.631281'},\n",
       "         'arrival_stop': {'name': '沙塱村',\n",
       "          'id': '900000111141015',\n",
       "          'location': '113.615547,23.557409'},\n",
       "         'name': '从15路(中大南方学院--从化汽车站总站)',\n",
       "         'id': '900000111141',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '15234',\n",
       "         'duration': '2843',\n",
       "         'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987;113.649731,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644640,23.621901;113.644635,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632957,23.615774;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587;113.628479,23.600821;113.628136,23.599293;113.627968,23.598680;113.627953,23.598633;113.627884,23.598433;113.627785,23.598202;113.627632,23.597919;113.627487,23.597683;113.627281,23.597401;113.627037,23.597139;113.626106,23.596230;113.625641,23.595755;113.624992,23.595139;113.624092,23.594326;113.623161,23.593433;113.622879,23.593147;113.622734,23.592981;113.622383,23.592590;113.622055,23.592186;113.621872,23.591957;113.621574,23.591545;113.621292,23.591133;113.621117,23.590864;113.620880,23.590433;113.620735,23.590164;113.620674,23.590054;113.620673,23.590052;113.620603,23.589913;113.619475,23.587643;113.619401,23.587491;113.619401,23.587487;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582357;113.617578,23.582361;113.617584,23.582365;113.617584,23.582359;113.617554,23.581884;113.617485,23.580811;113.617477,23.580591;113.617485,23.580204;113.617493,23.579849;113.617554,23.579384;113.617668,23.578743;113.617760,23.578316;113.617790,23.578138;113.618042,23.576904;113.618080,23.576723;113.618095,23.576658;113.618118,23.576557;113.618187,23.576189;113.618347,23.575378;113.618416,23.574808;113.618423,23.574497;113.618408,23.574158;113.618286,23.573481;113.618263,23.573381;113.618210,23.573103;113.618210,23.573111;113.618210,23.573120;113.618210,23.573116;113.618172,23.572929;113.618080,23.572432;113.618034,23.572153;113.618011,23.571901;113.617989,23.571444;113.618034,23.570911;113.618187,23.569813;113.618332,23.568825;113.618462,23.567951;113.618652,23.566698;113.618759,23.565947;113.618790,23.565674;113.618828,23.565474;113.618843,23.565365;113.618874,23.565182;113.618896,23.565014;113.618896,23.564964;113.619118,23.563465;113.619171,23.563156;113.619263,23.562523;113.619286,23.562109;113.619263,23.561775;113.619232,23.561602;113.619171,23.561384;113.619011,23.561010;113.618790,23.560673;113.618652,23.560495;113.618149,23.559973;113.617950,23.559765;113.616966,23.558811;113.615730,23.557600;113.615547,23.557409',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0900',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '12',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000111141003',\n",
       "           'location': '113.671707,23.643766'},\n",
       "          {'name': '交警温泉中队',\n",
       "           'id': '900000111141029',\n",
       "           'location': '113.656944,23.630304'},\n",
       "          {'name': '冲口',\n",
       "           'id': '900000111141022',\n",
       "           'location': '113.649731,23.624987'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000111141006',\n",
       "           'location': '113.644640,23.621901'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000111141023',\n",
       "           'location': '113.638325,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111141008',\n",
       "           'location': '113.632957,23.615774'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000111141024',\n",
       "           'location': '113.630844,23.610802'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000111141010',\n",
       "           'location': '113.628891,23.602587'},\n",
       "          {'name': '新华',\n",
       "           'id': '900000111141011',\n",
       "           'location': '113.620674,23.590054'},\n",
       "          {'name': '水底村',\n",
       "           'id': '900000111141012',\n",
       "           'location': '113.619401,23.587491'},\n",
       "          {'name': '南洋学院',\n",
       "           'id': '900000111141028',\n",
       "           'location': '113.617578,23.582357'},\n",
       "          {'name': '江埔社区',\n",
       "           'id': '900000111141014',\n",
       "           'location': '113.618210,23.573103'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.615540,23.557413',\n",
       "       'destination': '113.615593,23.557280',\n",
       "       'distance': '65',\n",
       "       'duration': '55',\n",
       "       'steps': [{'instruction': '沿环市东路步行22米右转',\n",
       "         'road': '环市东路',\n",
       "         'distance': '22',\n",
       "         'duration': [],\n",
       "         'polyline': '113.615540,23.557413;113.615692,23.557562',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行14米右转',\n",
       "         'road': [],\n",
       "         'distance': '14',\n",
       "         'duration': [],\n",
       "         'polyline': '113.615692,23.557562;113.615791,23.557474',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿环市东路步行29米到达沙塱村',\n",
       "         'road': '环市东路',\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.615791,23.557470;113.615593,23.557280',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达沙塱村'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '沙塱村',\n",
       "          'id': '900000111136007',\n",
       "          'location': '113.615593,23.557278'},\n",
       "         'arrival_stop': {'name': '龙岗墟',\n",
       "          'id': '900000111136028',\n",
       "          'location': '113.668082,23.600477'},\n",
       "         'name': '从19路(从化汽车站总站--高坣总站)',\n",
       "         'id': '900000111136',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '8259',\n",
       "         'duration': '2720',\n",
       "         'polyline': '113.615593,23.557278;113.615590,23.557274;113.617622,23.559266;113.618247,23.559887;113.618555,23.559796;113.618976,23.559753;113.619180,23.559727;113.619423,23.559740;113.619575,23.559753;113.620221,23.559922;113.620603,23.560009;113.621510,23.560221;113.621766,23.560312;113.621936,23.560417;113.622044,23.560521;113.622652,23.561181;113.622995,23.561589;113.623212,23.561766;113.623490,23.561905;113.624427,23.562179;113.624983,23.562361;113.625955,23.562678;113.626250,23.562804;113.626567,23.562999;113.627409,23.563646;113.627565,23.563811;113.627656,23.563945;113.628060,23.564588;113.628260,23.565022;113.628355,23.565169;113.628924,23.565673;113.629058,23.565794;113.629588,23.566454;113.630109,23.566879;113.630451,23.567153;113.630742,23.567383;113.630877,23.567470;113.631085,23.567652;113.631220,23.567830;113.631328,23.568047;113.631367,23.568147;113.631441,23.568333;113.631697,23.568993;113.631793,23.569154;113.631853,23.569219;113.631988,23.569314;113.632374,23.569488;113.632773,23.569631;113.633060,23.569683;113.633247,23.569688;113.633372,23.569679;113.633368,23.569683;113.633485,23.569674;113.633746,23.569614;113.635330,23.569058;113.636593,23.568641;113.636832,23.568581;113.637205,23.568516;113.637426,23.568503;113.637695,23.568524;113.638047,23.568607;113.638390,23.568741;113.638637,23.568867;113.638633,23.568867;113.638898,23.569002;113.640399,23.569818;113.640647,23.569974;113.640859,23.570152;113.640955,23.570256;113.641163,23.570521;113.641428,23.570816;113.641632,23.570998;113.641970,23.571224;113.642322,23.571406;113.642543,23.571497;113.642578,23.571506;113.642930,23.571628;113.643043,23.571649;113.643286,23.571680;113.643503,23.571680;113.643628,23.571680;113.643624,23.571680;113.643967,23.571675;113.644614,23.571671;113.644878,23.571701;113.644970,23.571727;113.645247,23.571862;113.645959,23.572365;113.646198,23.572561;113.646415,23.572773;113.646606,23.572956;113.646788,23.573151;113.647274,23.573637;113.647405,23.573750;113.649232,23.575178;113.649575,23.575447;113.649618,23.575486;113.649618,23.575482;113.649674,23.575530;113.650378,23.576089;113.651076,23.576658;113.651432,23.576936;113.651649,23.577105;113.652001,23.577383;113.652448,23.577700;113.652704,23.577860;113.653177,23.578108;113.653173,23.578108;113.653429,23.578242;113.653676,23.578368;113.654562,23.578845;113.654913,23.579019;113.655091,23.579084;113.656050,23.579310;113.656411,23.579358;113.656589,23.579484;113.656723,23.579640;113.657235,23.580213;113.657292,23.580304;113.657396,23.580612;113.657431,23.580773;113.657483,23.582105;113.657483,23.582231;113.657470,23.582339;113.657431,23.582439;113.657378,23.582539;113.657157,23.582847;113.657066,23.583025;113.656979,23.583255;113.656888,23.583568;113.656871,23.583676;113.656879,23.583780;113.656905,23.583919;113.657062,23.584449;113.657114,23.584566;113.657322,23.584891;113.657478,23.585156;113.657548,23.585365;113.657691,23.586688;113.657743,23.586931;113.657813,23.587135;113.658021,23.587643;113.658099,23.587830;113.658095,23.587830;113.658750,23.589397;113.658819,23.589588;113.659110,23.590226;113.659622,23.591046;113.659826,23.591389;113.659926,23.591589;113.660456,23.592799;113.660543,23.593021;113.660725,23.593594;113.660825,23.593885;113.660903,23.594028;113.660990,23.594167;113.660990,23.594171;113.660990,23.594167;113.661141,23.594410;113.661306,23.594601;113.661554,23.594844;113.662235,23.595430;113.663477,23.596506;113.663737,23.596775;113.664067,23.597135;113.664392,23.597617;113.664549,23.597865;113.664792,23.598234;113.665122,23.598633;113.665252,23.598780;113.665282,23.598819;113.665512,23.599089;113.665777,23.599362;113.665951,23.599501;113.666224,23.599640;113.667322,23.600135;113.667943,23.600412;113.668082,23.600477',\n",
       "         'bustimetag': '4',\n",
       "         'start_time': '0700',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '9',\n",
       "         'via_stops': [{'name': '灌村路口',\n",
       "           'id': '900000111136045',\n",
       "           'location': '113.618976,23.559753'},\n",
       "          {'name': '福上下社1',\n",
       "           'id': '900000111136037',\n",
       "           'location': '113.631367,23.568147'},\n",
       "          {'name': '福上下社2',\n",
       "           'id': '900000111136038',\n",
       "           'location': '113.633372,23.569679'},\n",
       "          {'name': '石海村',\n",
       "           'id': '900000111136039',\n",
       "           'location': '113.638637,23.568867'},\n",
       "          {'name': '石海小学',\n",
       "           'id': '900000111136040',\n",
       "           'location': '113.643628,23.571680'},\n",
       "          {'name': '石海村委',\n",
       "           'id': '900000111136041',\n",
       "           'location': '113.649618,23.575486'},\n",
       "          {'name': '灌村围',\n",
       "           'id': '900000111136042',\n",
       "           'location': '113.653177,23.578108'},\n",
       "          {'name': '中田里',\n",
       "           'id': '900000111136047',\n",
       "           'location': '113.658099,23.587830'},\n",
       "          {'name': '石桥社',\n",
       "           'id': '900000111136043',\n",
       "           'location': '113.660990,23.594167'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.668083,23.600477',\n",
       "       'destination': '113.667816,23.600794',\n",
       "       'distance': '59',\n",
       "       'duration': '50',\n",
       "       'steps': [{'instruction': '沿桃园东路步行15米右转',\n",
       "         'road': '桃园东路',\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.668083,23.600477;113.667946,23.600416',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿龙泉路步行44米',\n",
       "         'road': '龙泉路',\n",
       "         'distance': '44',\n",
       "         'duration': [],\n",
       "         'polyline': '113.667946,23.600412;113.667816,23.600794',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '5984',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2999',\n",
       "    'distance': '14744',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679588,23.632856',\n",
       "       'destination': '113.677689,23.648291',\n",
       "       'distance': '2553',\n",
       "       'duration': '2188',\n",
       "       'steps': [{'instruction': '步行92米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '92',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679588,23.632856;113.679588,23.633173;113.679588,23.633251;113.679619,23.633650;113.679649,23.633690',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行197米左转',\n",
       "         'road': '博学路',\n",
       "         'distance': '197',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679649,23.633690;113.679550,23.633966;113.679375,23.634357;113.679253,23.634480;113.679062,23.634657;113.678932,23.634762;113.678711,23.634918;113.678635,23.634970;113.678596,23.635031;113.678558,23.635109',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行163米右转',\n",
       "         'road': '博学路',\n",
       "         'distance': '163',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678558,23.635109;113.677856,23.635092;113.677612,23.635035;113.677536,23.634996;113.677330,23.634857;113.677086,23.634670',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行33米右转',\n",
       "         'road': '博学路',\n",
       "         'distance': '33',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677086,23.634666;113.677025,23.634701;113.676918,23.634718;113.676857,23.634705;113.676796,23.634661',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山路步行1265米右转',\n",
       "         'road': '中山路',\n",
       "         'distance': '1265',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676796,23.634657;113.675270,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674988,23.636997;113.675385,23.637886;113.675430,23.638042;113.675522,23.638659;113.675522,23.638998;113.675507,23.639132;113.675453,23.639311;113.675331,23.639584;113.675110,23.640036;113.675003,23.640186;113.674316,23.641024;113.673363,23.642139;113.672981,23.642534;113.672173,23.643303;113.671425,23.644045',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行760米向左前方行走',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '760',\n",
       "         'duration': [],\n",
       "         'polyline': '113.671425,23.644045;113.671638,23.644163;113.673103,23.644970;113.673950,23.645426;113.674370,23.645651;113.675461,23.646276;113.675964,23.646637;113.676407,23.647018;113.677444,23.647964;113.677498,23.648012',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行8米右转',\n",
       "         'road': [],\n",
       "         'distance': '8',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677498,23.648012;113.677444,23.648064',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行35米到达三层路口',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677444,23.648069;113.677689,23.648291',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达三层路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '三层路口',\n",
       "          'id': '900000069254022',\n",
       "          'location': '113.677689,23.648294'},\n",
       "         'arrival_stop': {'name': '宣星路口',\n",
       "          'id': '900000069254026',\n",
       "          'location': '113.628880,23.602548'},\n",
       "         'name': '从12路(吕田客运站总站--从化汽车站总站)',\n",
       "         'id': '900000069254',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '7791',\n",
       "         'duration': '1298',\n",
       "         'polyline': '113.677689,23.648294;113.677687,23.648290;113.677378,23.648016;113.676372,23.647088;113.675964,23.646745;113.675734,23.646567;113.675464,23.646385;113.675095,23.646172;113.673003,23.645004;113.671771,23.644327;113.671771,23.644323;113.669961,23.643329;113.669162,23.642882;113.668776,23.642674;113.668598,23.642578;113.667001,23.641693;113.666141,23.641172;113.665317,23.640564;113.665252,23.640512;113.665017,23.640299;113.664774,23.640065;113.664549,23.639813;113.664410,23.639661;113.664201,23.639401;113.663928,23.639019;113.663576,23.638451;113.663359,23.638021;113.662322,23.635933;113.661949,23.635182;113.661454,23.634266;113.661224,23.633898;113.660842,23.633381;113.660686,23.633190;113.660252,23.632704;113.659722,23.632170;113.659366,23.631879;113.659258,23.631793;113.658984,23.631589;113.658893,23.631519;113.658212,23.631102;113.657708,23.630760;113.657426,23.630590;113.656984,23.630330;113.656984,23.630326;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652674,23.627422;113.652370,23.627261;113.652114,23.627062;113.651510,23.626654;113.651363,23.626554;113.651050,23.626315;113.650573,23.625885;113.650091,23.625378;113.649970,23.625269;113.649822,23.625143;113.649766,23.625013;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644661,23.621905;113.644669,23.621906;113.644666,23.621905;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638472,23.620234;113.638355,23.620174;113.638355,23.620169;113.636046,23.618945;113.635543,23.618668;113.635252,23.618481;113.634748,23.618099;113.634518,23.617891;113.634262,23.617622;113.633980,23.617270;113.633633,23.616780;113.633056,23.615911;113.632917,23.615699;113.632912,23.615699;113.632400,23.614926;113.631910,23.614171;113.631667,23.613711;113.631432,23.613142;113.631293,23.612661;113.630907,23.611076;113.630842,23.610803;113.630825,23.610729;113.630825,23.610725;113.630764,23.610516;113.630660,23.610061;113.630569,23.609705;113.630547,23.609618;113.630495,23.609388;113.630113,23.607821;113.629774,23.606389;113.629392,23.604740;113.628880,23.602548',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '1900',\n",
       "         'via_num': '6',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000069254023',\n",
       "           'location': '113.671771,23.644327'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000069254024',\n",
       "           'location': '113.656984,23.630330'},\n",
       "          {'name': '牛步径',\n",
       "           'id': '900000069254041',\n",
       "           'location': '113.644661,23.621905'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000069254047',\n",
       "           'location': '113.638355,23.620174'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000069254025',\n",
       "           'location': '113.632917,23.615699'},\n",
       "          {'name': '云星村站',\n",
       "           'id': '900000069254048',\n",
       "           'location': '113.630825,23.610729'}]},\n",
       "        {'departure_stop': {'name': '三层路口',\n",
       "          'id': '900000069692027',\n",
       "          'location': '113.677597,23.648211'},\n",
       "         'arrival_stop': {'name': '宣星路口',\n",
       "          'id': '900000069692030',\n",
       "          'location': '113.628841,23.602378'},\n",
       "         'name': '从11路(良口客运站总站--从化汽车站总站)',\n",
       "         'id': '900000069692',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '7672',\n",
       "         'duration': '1296',\n",
       "         'polyline': '113.677597,23.648211;113.677376,23.648016;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.674744,23.645973;113.673363,23.645201;113.673004,23.645004;113.671715,23.644299;113.671715,23.644293;113.670654,23.643707;113.669968,23.643330;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660278,23.632727;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658226,23.631102;113.657707,23.630760;113.657425,23.630590;113.657120,23.630413;113.657118,23.630408;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652674,23.627422;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.648924,23.624327;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644414,23.621871;113.644410,23.621871;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638329,23.620156;113.638325,23.620156;113.636046,23.618945;113.635543,23.618668;113.635252,23.618481;113.634748,23.618099;113.634518,23.617891;113.634262,23.617622;113.633980,23.617270;113.633633,23.616780;113.633056,23.615911;113.632960,23.615768;113.632960,23.615764;113.632400,23.614926;113.631910,23.614171;113.631667,23.613711;113.631432,23.613142;113.631293,23.612661;113.630907,23.611076;113.630842,23.610803;113.630829,23.610747;113.630729,23.610373;113.630660,23.610061;113.630569,23.609705;113.630547,23.609618;113.630495,23.609388;113.630113,23.607821;113.629774,23.606389;113.629392,23.604740;113.628841,23.602378',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '1930',\n",
       "         'via_num': '6',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000069692010',\n",
       "           'location': '113.671715,23.644299'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000069692011',\n",
       "           'location': '113.657120,23.630413'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000069692028',\n",
       "           'location': '113.644414,23.621871'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000069692038',\n",
       "           'location': '113.638329,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000069692029',\n",
       "           'location': '113.632960,23.615768'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000069692039',\n",
       "           'location': '113.630829,23.610747'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.628883,23.602552',\n",
       "       'destination': '113.628723,23.601267',\n",
       "       'distance': '266',\n",
       "       'duration': '228',\n",
       "       'steps': [{'instruction': '沿温泉大道步行55米右转',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '55',\n",
       "         'duration': [],\n",
       "         'polyline': '113.628883,23.602552;113.628998,23.603046',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行13米右转',\n",
       "         'road': [],\n",
       "         'distance': '13',\n",
       "         'duration': [],\n",
       "         'polyline': '113.629005,23.603046;113.629120,23.603025',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行198米到达宣星路口',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '198',\n",
       "         'duration': [],\n",
       "         'polyline': '113.629120,23.603022;113.628906,23.602083;113.628815,23.601658;113.628723,23.601267',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达宣星路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '宣星路口',\n",
       "          'id': '900000111131022',\n",
       "          'location': '113.628720,23.601263'},\n",
       "         'arrival_stop': {'name': '教师村',\n",
       "          'id': '900000111131041',\n",
       "          'location': '113.666658,23.601437'},\n",
       "         'name': '从14路(从化汽车站总站--高坣总站)',\n",
       "         'id': '900000111131',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '3954',\n",
       "         'duration': '2116',\n",
       "         'polyline': '113.628720,23.601263;113.628720,23.601259;113.628811,23.601658;113.629280,23.601780;113.630113,23.601445;113.630365,23.601354;113.632248,23.600681;113.633785,23.600347;113.635725,23.599957;113.636810,23.599731;113.637335,23.599657;113.638103,23.599596;113.638542,23.599579;113.639266,23.599588;113.639427,23.599592;113.642270,23.599570;113.642578,23.599570;113.643043,23.599622;113.643294,23.599653;113.643290,23.599653;113.643581,23.599688;113.643624,23.599661;113.643911,23.599657;113.644232,23.599605;113.644449,23.599614;113.645451,23.599935;113.646454,23.600278;113.646589,23.600347;113.646658,23.600417;113.646931,23.600595;113.649835,23.601749;113.649935,23.601797;113.650030,23.601862;113.650937,23.602674;113.651063,23.602752;113.651176,23.602786;113.651367,23.602826;113.651584,23.602847;113.651845,23.602847;113.652001,23.602830;113.652504,23.602708;113.652839,23.602582;113.652999,23.602548;113.653181,23.602543;113.653264,23.602561;113.653659,23.602752;113.653802,23.602799;113.654605,23.602977;113.655122,23.603069;113.655243,23.603077;113.655391,23.603069;113.655799,23.602999;113.656055,23.602934;113.656302,23.602847;113.657083,23.602530;113.657300,23.602461;113.657500,23.602418;113.659041,23.602205;113.659501,23.602144;113.660009,23.602170;113.660386,23.602144;113.661046,23.601988;113.661115,23.601975;113.661115,23.601970;113.661115,23.601975;113.661845,23.601801;113.662044,23.601740;113.662687,23.601458;113.662951,23.601385;113.663980,23.601424;113.664275,23.601445;113.664549,23.601489;113.664596,23.601497;113.664714,23.601497;113.665464,23.601280;113.665655,23.601233;113.665864,23.601202;113.666658,23.601437',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0700',\n",
       "         'end_time': '1840',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '宣星村委',\n",
       "           'id': '900000111131038',\n",
       "           'location': '113.643294,23.599653'},\n",
       "          {'name': '鸡笼岗路口',\n",
       "           'id': '900000111131040',\n",
       "           'location': '113.661115,23.601975'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.666656,23.601437',\n",
       "       'destination': '113.667778,23.600882',\n",
       "       'distance': '180',\n",
       "       'duration': '154',\n",
       "       'steps': [{'instruction': '沿龙宣街步行86米右转',\n",
       "         'road': '龙宣街',\n",
       "         'distance': '86',\n",
       "         'duration': [],\n",
       "         'polyline': '113.666656,23.601437;113.666763,23.601467;113.667221,23.601614;113.667458,23.601688',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿龙泉路步行94米',\n",
       "         'road': '龙泉路',\n",
       "         'distance': '94',\n",
       "         'duration': [],\n",
       "         'polyline': '113.667458,23.601688;113.667564,23.601440;113.667671,23.601164;113.667778,23.600882',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': [],\n",
       "    'duration': '4719',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '545',\n",
       "    'distance': '17403',\n",
       "    'missed': '1',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679016,23.632349',\n",
       "       'destination': '113.676613,23.631285',\n",
       "       'distance': '513',\n",
       "       'duration': '439',\n",
       "       'steps': [{'instruction': '步行57米右转',\n",
       "         'road': [],\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679016,23.632349;113.678528,23.632097',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行47米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '47',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行218米左转',\n",
       "         'road': [],\n",
       "         'distance': '218',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行191米到达中大南方学院',\n",
       "         'road': '博学路',\n",
       "         'distance': '191',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达中大南方学院'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院',\n",
       "          'id': '900000111141002',\n",
       "          'location': '113.676613,23.631281'},\n",
       "         'arrival_stop': {'name': '冲口',\n",
       "          'id': '900000111141022',\n",
       "          'location': '113.649731,23.624987'},\n",
       "         'name': '从15路(中大南方学院--从化汽车站总站)',\n",
       "         'id': '900000111141',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '6394',\n",
       "         'duration': '1857',\n",
       "         'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0900',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000111141003',\n",
       "           'location': '113.671707,23.643766'},\n",
       "          {'name': '交警温泉中队',\n",
       "           'id': '900000111141029',\n",
       "           'location': '113.656944,23.630304'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': [],\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '冲口',\n",
       "          'id': '900000111218004',\n",
       "          'location': '113.649731,23.624983'},\n",
       "         'arrival_stop': {'name': '龙岗墟',\n",
       "          'id': '900000111218023',\n",
       "          'location': '113.667899,23.600530'},\n",
       "         'name': '从701路(温泉宾馆--南平村委)',\n",
       "         'id': '900000111218',\n",
       "         'type': '微循环公交',\n",
       "         'distance': '10464',\n",
       "         'duration': '2395',\n",
       "         'polyline': '113.649731,23.624983;113.649727,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644648,23.621901;113.644644,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.638329,23.620159;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632965,23.615782;113.632957,23.615778;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587;113.628479,23.600821;113.628136,23.599293;113.627968,23.598680;113.627953,23.598633;113.627884,23.598433;113.627785,23.598202;113.627632,23.597919;113.627487,23.597683;113.627281,23.597401;113.627037,23.597139;113.626106,23.596230;113.625641,23.595755;113.624992,23.595139;113.624092,23.594326;113.623161,23.593433;113.622879,23.593147;113.622978,23.593065;113.623573,23.593662;113.627022,23.596935;113.627274,23.597191;113.627449,23.597414;113.627663,23.597729;113.627869,23.598082;113.627975,23.598307;113.628059,23.598547;113.628090,23.598633;113.628212,23.599079;113.628616,23.600807;113.628723,23.601263;113.628720,23.601263;113.628811,23.601658;113.629280,23.601780;113.630113,23.601445;113.630365,23.601354;113.632248,23.600681;113.633785,23.600347;113.635725,23.599957;113.636810,23.599731;113.637335,23.599657;113.638103,23.599596;113.638542,23.599579;113.639266,23.599588;113.639427,23.599592;113.642270,23.599570;113.642578,23.599570;113.643043,23.599622;113.643581,23.599688;113.643624,23.599661;113.643911,23.599657;113.644232,23.599605;113.644449,23.599614;113.645451,23.599935;113.646454,23.600278;113.646589,23.600347;113.646658,23.600417;113.646931,23.600595;113.649835,23.601749;113.649935,23.601797;113.650030,23.601862;113.650937,23.602674;113.651063,23.602752;113.651176,23.602786;113.651367,23.602826;113.651584,23.602847;113.651845,23.602847;113.652001,23.602830;113.652504,23.602708;113.652839,23.602582;113.652999,23.602548;113.653181,23.602543;113.653264,23.602561;113.653659,23.602752;113.653802,23.602799;113.654605,23.602977;113.655122,23.603069;113.655243,23.603077;113.655391,23.603069;113.655799,23.602999;113.656055,23.602934;113.656302,23.602847;113.657083,23.602530;113.657300,23.602461;113.657500,23.602418;113.659041,23.602205;113.659501,23.602144;113.660009,23.602170;113.660386,23.602144;113.661046,23.601988;113.661845,23.601801;113.662044,23.601740;113.662687,23.601458;113.662951,23.601385;113.663980,23.601424;113.664275,23.601445;113.664549,23.601489;113.664596,23.601497;113.664714,23.601497;113.665464,23.601280;113.665655,23.601233;113.665864,23.601202;113.666658,23.601441;113.666662,23.601441;113.666658,23.601441;113.666758,23.601467;113.667001,23.601545;113.667222,23.601615;113.667465,23.601688;113.667773,23.600877;113.667899,23.600530',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '7',\n",
       "         'via_stops': [{'name': '牛步迳',\n",
       "           'id': '900000111218005',\n",
       "           'location': '113.644648,23.621901'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000111218006',\n",
       "           'location': '113.638325,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111218007',\n",
       "           'location': '113.632965,23.615782'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000111218008',\n",
       "           'location': '113.630844,23.610802'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000111218009',\n",
       "           'location': '113.628891,23.602587'},\n",
       "          {'name': '宣星路口(星光五金水电商场)',\n",
       "           'id': '900000111218021',\n",
       "           'location': '113.628723,23.601263'},\n",
       "          {'name': '教师村',\n",
       "           'id': '900000111218022',\n",
       "           'location': '113.666658,23.601441'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.667900,23.600529',\n",
       "       'destination': '113.667816,23.600794',\n",
       "       'distance': '31',\n",
       "       'duration': '26',\n",
       "       'steps': [{'instruction': '沿龙泉路步行31米',\n",
       "         'road': '龙泉路',\n",
       "         'distance': '31',\n",
       "         'duration': [],\n",
       "         'polyline': '113.667900,23.600529;113.667816,23.600794',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "bus(key1,起始点_中大南方,目的地_龙岗,city = \"广州\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 驾车路径规划 \n",
    "> * 1、url：https://restapi.amap.com/v3/direction/driving?parameters\n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、origin（出发点（经纬度）），destination（目的地（经纬度））\n",
    ">> * 2、可选：originid(出发点poiid）,destinationid(目的地poiid），origintype（出发点poi类别）,destinationtype（终点的poi类别），strategy（驾车选择策略），waypoints（途经点），avoidpolygons（避让区域），avoidroad，province，number（填入除省份及标点之外，车牌的字母和数字（需大写））。用于判断限行相关。，cartype，ferry（在路径规划中，是否使用轮渡），roadaggregation（是否返回路径聚合信息），nosteps（是否返回steps字段内容），sig,output,callback,extensions"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.668051,23.600869',\n",
       "  'taxi_cost': '17',\n",
       "  'paths': [{'distance': '5576',\n",
       "    'duration': '839',\n",
       "    'strategy': '速度最快',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'steps': [{'instruction': '向南行驶9米左转',\n",
       "      'orientation': '南',\n",
       "      'distance': '9',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '7',\n",
       "      'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '9',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.679596,23.632574;113.679596,23.632491'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向东行驶100米右转',\n",
       "      'orientation': '东',\n",
       "      'distance': '100',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '30',\n",
       "      'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '100',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.679596,23.632491;113.680582,23.632522'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向南行驶199米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'distance': '199',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '51',\n",
       "      'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '122',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432'},\n",
       "       {'lcode': [],\n",
       "        'distance': '77',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向西行驶159米左转',\n",
       "      'orientation': '西',\n",
       "      'distance': '159',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '35',\n",
       "      'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '18',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.680204,23.630838;113.68003,23.630768'},\n",
       "       {'lcode': [],\n",
       "        'distance': '42',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.68003,23.630768;113.67964,23.630634'},\n",
       "       {'lcode': [],\n",
       "        'distance': '48',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469'},\n",
       "       {'lcode': [],\n",
       "        'distance': '51',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.679197,23.630469;113.678711,23.63036'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向南行驶237米左转',\n",
       "      'orientation': '南',\n",
       "      'distance': '237',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '66',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '113',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.678711,23.63036;113.678711,23.629336'},\n",
       "       {'lcode': [],\n",
       "        'distance': '124',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向东南行驶105米向右前方行驶',\n",
       "      'orientation': '东南',\n",
       "      'distance': '105',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '53',\n",
       "      'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '43',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303'},\n",
       "       {'lcode': [],\n",
       "        'distance': '62',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向南行驶393米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'distance': '393',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '59',\n",
       "      'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '72',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318'},\n",
       "       {'lcode': [],\n",
       "        'distance': '321',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '沿源富街途径源湖街向西南行驶2.4千米左转',\n",
       "      'orientation': '西南',\n",
       "      'road': '源富街',\n",
       "      'distance': '2351',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '285',\n",
       "      'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786;113.667895,23.617096;113.666341,23.616736;113.665916,23.616649;113.664549,23.616345;113.663585,23.616128;113.663507,23.616107;113.663225,23.616042;113.662569,23.615911;113.662027,23.615803;113.661684,23.615712;113.660404,23.615417',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '42',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323'},\n",
       "       {'lcode': [],\n",
       "        'distance': '435',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832'},\n",
       "       {'lcode': [],\n",
       "        'distance': '245',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009'},\n",
       "       {'lcode': [],\n",
       "        'distance': '512',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786'},\n",
       "       {'lcode': [],\n",
       "        'distance': '334',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.671081,23.617786;113.667895,23.617096'},\n",
       "       {'lcode': [],\n",
       "        'distance': '163',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.667895,23.617096;113.666341,23.616736'},\n",
       "       {'lcode': [],\n",
       "        'distance': '44',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.666341,23.616736;113.665916,23.616649'},\n",
       "       {'lcode': [],\n",
       "        'distance': '244',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665916,23.616649;113.664549,23.616345;113.663585,23.616128'},\n",
       "       {'lcode': [],\n",
       "        'distance': '8',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.663585,23.616128;113.663507,23.616107'},\n",
       "       {'lcode': [],\n",
       "        'distance': '29',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.663507,23.616107;113.663225,23.616042'},\n",
       "       {'lcode': [],\n",
       "        'distance': '68',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.663225,23.616042;113.662569,23.615911'},\n",
       "       {'lcode': [],\n",
       "        'distance': '93',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.662569,23.615911;113.662027,23.615803;113.661684,23.615712'},\n",
       "       {'lcode': [],\n",
       "        'distance': '134',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.661684,23.615712;113.660404,23.615417'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '沿龙泉路向东南行驶1.9千米左转',\n",
       "      'orientation': '东南',\n",
       "      'road': '龙泉路',\n",
       "      'distance': '1858',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '187',\n",
       "      'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349;113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891;113.665694,23.606523;113.667018,23.602865;113.667179,23.602465;113.667361,23.601984;113.667465,23.601688;113.667565,23.601437;113.667665,23.601159;113.667773,23.600877;113.667943,23.600412',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '113',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831'},\n",
       "       {'lcode': [],\n",
       "        'distance': '70',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349'},\n",
       "       {'lcode': [],\n",
       "        'distance': '23',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.661736,23.614349;113.661797,23.614145'},\n",
       "       {'lcode': [],\n",
       "        'distance': '153',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142'},\n",
       "       {'lcode': [],\n",
       "        'distance': '626',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891'},\n",
       "       {'lcode': [],\n",
       "        'distance': '163',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665095,23.607891;113.665694,23.606523'},\n",
       "       {'lcode': [],\n",
       "        'distance': '426',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665694,23.606523;113.667018,23.602865'},\n",
       "       {'lcode': [],\n",
       "        'distance': '47',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667018,23.602865;113.667179,23.602465'},\n",
       "       {'lcode': [],\n",
       "        'distance': '56',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667179,23.602465;113.667361,23.601984'},\n",
       "       {'lcode': [],\n",
       "        'distance': '34',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667361,23.601984;113.667465,23.601688'},\n",
       "       {'lcode': [],\n",
       "        'distance': '29',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667465,23.601688;113.667565,23.601437'},\n",
       "       {'lcode': [],\n",
       "        'distance': '32',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667565,23.601437;113.667665,23.601159'},\n",
       "       {'lcode': [],\n",
       "        'distance': '32',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667665,23.601159;113.667773,23.600877'},\n",
       "       {'lcode': [],\n",
       "        'distance': '54',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667773,23.600877;113.667943,23.600412'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '沿桃园东路向东北行驶82米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '82',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '22',\n",
       "      'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '82',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "      'orientation': '西北',\n",
       "      'road': '龙岗福安街',\n",
       "      'distance': '48',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '32',\n",
       "      'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '48',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向西行驶35米到达目的地',\n",
       "      'orientation': '西',\n",
       "      'distance': '35',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '12',\n",
       "      'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '8',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.668398,23.60112;113.668325,23.601094'},\n",
       "       {'lcode': [],\n",
       "        'distance': '27',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]}],\n",
       "    'restriction': '0',\n",
       "    'traffic_lights': '0'}]}}"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = 'https://restapi.amap.com/v3/direction/driving?parameters'\n",
    "params = {'key':key1,\n",
    "          'origin':起始点_中大南方,\n",
    "          'destination':目的地_龙岗,\n",
    "          }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'distance': '5576',\n",
       "  'duration': '839',\n",
       "  'strategy': '速度最快',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'steps': [{'instruction': '向南行驶9米左转',\n",
       "    'orientation': '南',\n",
       "    'distance': '9',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '7',\n",
       "    'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '9',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.679596,23.632574;113.679596,23.632491'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '向东行驶100米右转',\n",
       "    'orientation': '东',\n",
       "    'distance': '100',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '30',\n",
       "    'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '100',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.679596,23.632491;113.680582,23.632522'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '向南行驶199米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'distance': '199',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '51',\n",
       "    'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "    'action': '向右前方行驶',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '122',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432'},\n",
       "     {'lcode': [],\n",
       "      'distance': '77',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '向西行驶159米左转',\n",
       "    'orientation': '西',\n",
       "    'distance': '159',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '35',\n",
       "    'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '18',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.680204,23.630838;113.68003,23.630768'},\n",
       "     {'lcode': [],\n",
       "      'distance': '42',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.68003,23.630768;113.67964,23.630634'},\n",
       "     {'lcode': [],\n",
       "      'distance': '48',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469'},\n",
       "     {'lcode': [],\n",
       "      'distance': '51',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.679197,23.630469;113.678711,23.63036'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '向南行驶237米左转',\n",
       "    'orientation': '南',\n",
       "    'distance': '237',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '66',\n",
       "    'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '113',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.629336'},\n",
       "     {'lcode': [],\n",
       "      'distance': '124',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '向东南行驶105米向右前方行驶',\n",
       "    'orientation': '东南',\n",
       "    'distance': '105',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '53',\n",
       "    'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "    'action': '向右前方行驶',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '43',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303'},\n",
       "     {'lcode': [],\n",
       "      'distance': '62',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '向南行驶393米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'distance': '393',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '59',\n",
       "    'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "    'action': '向右前方行驶',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '72',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318'},\n",
       "     {'lcode': [],\n",
       "      'distance': '321',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '沿源富街途径源湖街向西南行驶2.4千米左转',\n",
       "    'orientation': '西南',\n",
       "    'road': '源富街',\n",
       "    'distance': '2351',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '285',\n",
       "    'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786;113.667895,23.617096;113.666341,23.616736;113.665916,23.616649;113.664549,23.616345;113.663585,23.616128;113.663507,23.616107;113.663225,23.616042;113.662569,23.615911;113.662027,23.615803;113.661684,23.615712;113.660404,23.615417',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '42',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323'},\n",
       "     {'lcode': [],\n",
       "      'distance': '435',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832'},\n",
       "     {'lcode': [],\n",
       "      'distance': '245',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009'},\n",
       "     {'lcode': [],\n",
       "      'distance': '512',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786'},\n",
       "     {'lcode': [],\n",
       "      'distance': '334',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.671081,23.617786;113.667895,23.617096'},\n",
       "     {'lcode': [],\n",
       "      'distance': '163',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.667895,23.617096;113.666341,23.616736'},\n",
       "     {'lcode': [],\n",
       "      'distance': '44',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.666341,23.616736;113.665916,23.616649'},\n",
       "     {'lcode': [],\n",
       "      'distance': '244',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.665916,23.616649;113.664549,23.616345;113.663585,23.616128'},\n",
       "     {'lcode': [],\n",
       "      'distance': '8',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.663585,23.616128;113.663507,23.616107'},\n",
       "     {'lcode': [],\n",
       "      'distance': '29',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.663507,23.616107;113.663225,23.616042'},\n",
       "     {'lcode': [],\n",
       "      'distance': '68',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.663225,23.616042;113.662569,23.615911'},\n",
       "     {'lcode': [],\n",
       "      'distance': '93',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.662569,23.615911;113.662027,23.615803;113.661684,23.615712'},\n",
       "     {'lcode': [],\n",
       "      'distance': '134',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.661684,23.615712;113.660404,23.615417'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '沿龙泉路向东南行驶1.9千米左转',\n",
       "    'orientation': '东南',\n",
       "    'road': '龙泉路',\n",
       "    'distance': '1858',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '187',\n",
       "    'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349;113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891;113.665694,23.606523;113.667018,23.602865;113.667179,23.602465;113.667361,23.601984;113.667465,23.601688;113.667565,23.601437;113.667665,23.601159;113.667773,23.600877;113.667943,23.600412',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '113',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831'},\n",
       "     {'lcode': [],\n",
       "      'distance': '70',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349'},\n",
       "     {'lcode': [],\n",
       "      'distance': '23',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.661736,23.614349;113.661797,23.614145'},\n",
       "     {'lcode': [],\n",
       "      'distance': '153',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142'},\n",
       "     {'lcode': [],\n",
       "      'distance': '626',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891'},\n",
       "     {'lcode': [],\n",
       "      'distance': '163',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.665095,23.607891;113.665694,23.606523'},\n",
       "     {'lcode': [],\n",
       "      'distance': '426',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.665694,23.606523;113.667018,23.602865'},\n",
       "     {'lcode': [],\n",
       "      'distance': '47',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.667018,23.602865;113.667179,23.602465'},\n",
       "     {'lcode': [],\n",
       "      'distance': '56',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.667179,23.602465;113.667361,23.601984'},\n",
       "     {'lcode': [],\n",
       "      'distance': '34',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.667361,23.601984;113.667465,23.601688'},\n",
       "     {'lcode': [],\n",
       "      'distance': '29',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.667465,23.601688;113.667565,23.601437'},\n",
       "     {'lcode': [],\n",
       "      'distance': '32',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.667565,23.601437;113.667665,23.601159'},\n",
       "     {'lcode': [],\n",
       "      'distance': '32',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.667665,23.601159;113.667773,23.600877'},\n",
       "     {'lcode': [],\n",
       "      'distance': '54',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.667773,23.600877;113.667943,23.600412'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '沿桃园东路向东北行驶82米左转',\n",
       "    'orientation': '东北',\n",
       "    'road': '桃园东路',\n",
       "    'distance': '82',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '22',\n",
       "    'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '82',\n",
       "      'status': '畅通',\n",
       "      'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "    'orientation': '西北',\n",
       "    'road': '龙岗福安街',\n",
       "    'distance': '48',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '32',\n",
       "    'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '48',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "   {'instruction': '向西行驶35米到达目的地',\n",
       "    'orientation': '西',\n",
       "    'distance': '35',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'toll_road': [],\n",
       "    'duration': '12',\n",
       "    'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "    'action': [],\n",
       "    'assistant_action': '到达目的地',\n",
       "    'tmcs': [{'lcode': [],\n",
       "      'distance': '8',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.668398,23.60112;113.668325,23.601094'},\n",
       "     {'lcode': [],\n",
       "      'distance': '27',\n",
       "      'status': '未知',\n",
       "      'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016'}],\n",
       "    'cities': [{'name': '广州市',\n",
       "      'citycode': '020',\n",
       "      'adcode': '440100',\n",
       "      'districts': [{'name': '从化区', 'adcode': '440117'}]}]}],\n",
       "  'restriction': '0',\n",
       "  'traffic_lights': '0'}]"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()['route']['paths']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>distance</th>\n",
       "      <th>tolls</th>\n",
       "      <th>toll_distance</th>\n",
       "      <th>toll_road</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>tmcs</th>\n",
       "      <th>cities</th>\n",
       "      <th>road</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向南行驶9米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>7</td>\n",
       "      <td>113.679596,23.632574;113.679596,23.632491</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '9', 'status': '未知'...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向东行驶100米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>100</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>30</td>\n",
       "      <td>113.679596,23.632491;113.680582,23.632522</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '100', 'status': '未...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>向南行驶199米向右前方行驶</td>\n",
       "      <td>南</td>\n",
       "      <td>199</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>51</td>\n",
       "      <td>113.680582,23.632522;113.680642,23.632135;113....</td>\n",
       "      <td>向右前方行驶</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '122', 'status': '未...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>向西行驶159米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>159</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>35</td>\n",
       "      <td>113.680204,23.630838;113.68003,23.630768;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '18', 'status': '未知...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>向南行驶237米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>237</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>66</td>\n",
       "      <td>113.678711,23.63036;113.678711,23.629336;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '113', 'status': '未...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>向东南行驶105米向右前方行驶</td>\n",
       "      <td>东南</td>\n",
       "      <td>105</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>53</td>\n",
       "      <td>113.678273,23.628372;113.678572,23.628333;113....</td>\n",
       "      <td>向右前方行驶</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '43', 'status': '未知...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>向南行驶393米向右前方行驶</td>\n",
       "      <td>南</td>\n",
       "      <td>393</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>59</td>\n",
       "      <td>113.679162,23.62796;113.679214,23.627865;113.6...</td>\n",
       "      <td>向右前方行驶</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '72', 'status': '未知...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>沿源富街途径源湖街向西南行驶2.4千米左转</td>\n",
       "      <td>西南</td>\n",
       "      <td>2351</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>285</td>\n",
       "      <td>113.678572,23.624653;113.678555,23.624505;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '42', 'status': '畅通...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>源富街</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>沿龙泉路向东南行驶1.9千米左转</td>\n",
       "      <td>东南</td>\n",
       "      <td>1858</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>187</td>\n",
       "      <td>113.660404,23.615417;113.660872,23.61513;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '113', 'status': '畅...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>龙泉路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>沿桃园东路向东北行驶82米左转</td>\n",
       "      <td>东北</td>\n",
       "      <td>82</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>22</td>\n",
       "      <td>113.667943,23.600412;113.668437,23.600642;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '82', 'status': '畅通...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>桃园东路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>沿龙岗福安街向西北行驶48米左转</td>\n",
       "      <td>西北</td>\n",
       "      <td>48</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>32</td>\n",
       "      <td>113.668663,23.600764;113.668451,23.601003;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '48', 'status': '未知...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>龙岗福安街</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>向西行驶35米到达目的地</td>\n",
       "      <td>西</td>\n",
       "      <td>35</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>12</td>\n",
       "      <td>113.668398,23.60112;113.668325,23.601094;113.6...</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>[{'lcode': [], 'distance': '8', 'status': '未知'...</td>\n",
       "      <td>[{'name': '广州市', 'citycode': '020', 'adcode': ...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              instruction orientation distance tolls toll_distance toll_road  \\\n",
       "0                向南行驶9米左转           南        9     0             0        []   \n",
       "1              向东行驶100米右转           东      100     0             0        []   \n",
       "2          向南行驶199米向右前方行驶           南      199     0             0        []   \n",
       "3              向西行驶159米左转           西      159     0             0        []   \n",
       "4              向南行驶237米左转           南      237     0             0        []   \n",
       "5         向东南行驶105米向右前方行驶          东南      105     0             0        []   \n",
       "6          向南行驶393米向右前方行驶           南      393     0             0        []   \n",
       "7   沿源富街途径源湖街向西南行驶2.4千米左转          西南     2351     0             0        []   \n",
       "8        沿龙泉路向东南行驶1.9千米左转          东南     1858     0             0        []   \n",
       "9         沿桃园东路向东北行驶82米左转          东北       82     0             0        []   \n",
       "10       沿龙岗福安街向西北行驶48米左转          西北       48     0             0        []   \n",
       "11           向西行驶35米到达目的地           西       35     0             0        []   \n",
       "\n",
       "   duration                                           polyline  action  \\\n",
       "0         7          113.679596,23.632574;113.679596,23.632491      左转   \n",
       "1        30          113.679596,23.632491;113.680582,23.632522      右转   \n",
       "2        51  113.680582,23.632522;113.680642,23.632135;113....  向右前方行驶   \n",
       "3        35  113.680204,23.630838;113.68003,23.630768;113.6...      左转   \n",
       "4        66  113.678711,23.63036;113.678711,23.629336;113.6...      左转   \n",
       "5        53  113.678273,23.628372;113.678572,23.628333;113....  向右前方行驶   \n",
       "6        59  113.679162,23.62796;113.679214,23.627865;113.6...  向右前方行驶   \n",
       "7       285  113.678572,23.624653;113.678555,23.624505;113....      左转   \n",
       "8       187  113.660404,23.615417;113.660872,23.61513;113.6...      左转   \n",
       "9        22  113.667943,23.600412;113.668437,23.600642;113....      左转   \n",
       "10       32  113.668663,23.600764;113.668451,23.601003;113....      左转   \n",
       "11       12  113.668398,23.60112;113.668325,23.601094;113.6...      []   \n",
       "\n",
       "   assistant_action                                               tmcs  \\\n",
       "0                []  [{'lcode': [], 'distance': '9', 'status': '未知'...   \n",
       "1                []  [{'lcode': [], 'distance': '100', 'status': '未...   \n",
       "2                []  [{'lcode': [], 'distance': '122', 'status': '未...   \n",
       "3                []  [{'lcode': [], 'distance': '18', 'status': '未知...   \n",
       "4                []  [{'lcode': [], 'distance': '113', 'status': '未...   \n",
       "5                []  [{'lcode': [], 'distance': '43', 'status': '未知...   \n",
       "6                []  [{'lcode': [], 'distance': '72', 'status': '未知...   \n",
       "7                []  [{'lcode': [], 'distance': '42', 'status': '畅通...   \n",
       "8                []  [{'lcode': [], 'distance': '113', 'status': '畅...   \n",
       "9                []  [{'lcode': [], 'distance': '82', 'status': '畅通...   \n",
       "10               []  [{'lcode': [], 'distance': '48', 'status': '未知...   \n",
       "11            到达目的地  [{'lcode': [], 'distance': '8', 'status': '未知'...   \n",
       "\n",
       "                                               cities   road  \n",
       "0   [{'name': '广州市', 'citycode': '020', 'adcode': ...    NaN  \n",
       "1   [{'name': '广州市', 'citycode': '020', 'adcode': ...    NaN  \n",
       "2   [{'name': '广州市', 'citycode': '020', 'adcode': ...    NaN  \n",
       "3   [{'name': '广州市', 'citycode': '020', 'adcode': ...    NaN  \n",
       "4   [{'name': '广州市', 'citycode': '020', 'adcode': ...    NaN  \n",
       "5   [{'name': '广州市', 'citycode': '020', 'adcode': ...    NaN  \n",
       "6   [{'name': '广州市', 'citycode': '020', 'adcode': ...    NaN  \n",
       "7   [{'name': '广州市', 'citycode': '020', 'adcode': ...    源富街  \n",
       "8   [{'name': '广州市', 'citycode': '020', 'adcode': ...    龙泉路  \n",
       "9   [{'name': '广州市', 'citycode': '020', 'adcode': ...   桃园东路  \n",
       "10  [{'name': '广州市', 'citycode': '020', 'adcode': ...  龙岗福安街  \n",
       "11  [{'name': '广州市', 'citycode': '020', 'adcode': ...    NaN  "
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['route']['paths'][0]['steps'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [],
   "source": [
    "def car(key,origin,destination,originid = None,destinationid=None,origintype = None,destinationtype = None,strategy = 10,waypoints = None,avoidpolygons = None,avoidroad = None,province = None,number = None,cartype = 0,ferry = 0,adaggregation = 'true',nosteps = 0,sig = None,output = 'json',callback = None,extensions = 'base')->str:\n",
    "    \"\"\"获取高德API的驾车路径规划\n",
    "温馨提示：key是指高德api的密钥，请先去注册；\n",
    "          origin是指起始地点，destination是目的地\n",
    "          具体请查看：https://lbs.amap.com/api/webservice/guide/api/direction\n",
    "    \"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/direction/driving?parameters'\n",
    "    params = {'key':key,\n",
    "          'origin':origin,\n",
    "          'destination':destination,\n",
    "          }\n",
    "    response = requests.get(url,params = params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.668051,23.600869',\n",
       "  'taxi_cost': '17',\n",
       "  'paths': [{'distance': '5576',\n",
       "    'duration': '839',\n",
       "    'strategy': '速度最快',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'steps': [{'instruction': '向南行驶9米左转',\n",
       "      'orientation': '南',\n",
       "      'distance': '9',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '7',\n",
       "      'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '9',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.679596,23.632574;113.679596,23.632491'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向东行驶100米右转',\n",
       "      'orientation': '东',\n",
       "      'distance': '100',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '30',\n",
       "      'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '100',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.679596,23.632491;113.680582,23.632522'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向南行驶199米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'distance': '199',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '51',\n",
       "      'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '122',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432'},\n",
       "       {'lcode': [],\n",
       "        'distance': '77',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向西行驶159米左转',\n",
       "      'orientation': '西',\n",
       "      'distance': '159',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '35',\n",
       "      'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '18',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.680204,23.630838;113.68003,23.630768'},\n",
       "       {'lcode': [],\n",
       "        'distance': '42',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.68003,23.630768;113.67964,23.630634'},\n",
       "       {'lcode': [],\n",
       "        'distance': '48',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469'},\n",
       "       {'lcode': [],\n",
       "        'distance': '51',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.679197,23.630469;113.678711,23.63036'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向南行驶237米左转',\n",
       "      'orientation': '南',\n",
       "      'distance': '237',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '66',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '113',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.678711,23.63036;113.678711,23.629336'},\n",
       "       {'lcode': [],\n",
       "        'distance': '124',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向东南行驶105米向右前方行驶',\n",
       "      'orientation': '东南',\n",
       "      'distance': '105',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '53',\n",
       "      'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '43',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303'},\n",
       "       {'lcode': [],\n",
       "        'distance': '62',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向南行驶393米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'distance': '393',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '59',\n",
       "      'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '72',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318'},\n",
       "       {'lcode': [],\n",
       "        'distance': '321',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '沿源富街途径源湖街向西南行驶2.4千米左转',\n",
       "      'orientation': '西南',\n",
       "      'road': '源富街',\n",
       "      'distance': '2351',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '285',\n",
       "      'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786;113.667895,23.617096;113.666341,23.616736;113.665916,23.616649;113.664549,23.616345;113.663585,23.616128;113.663507,23.616107;113.663225,23.616042;113.662569,23.615911;113.662027,23.615803;113.661684,23.615712;113.660404,23.615417',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '42',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323'},\n",
       "       {'lcode': [],\n",
       "        'distance': '435',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832'},\n",
       "       {'lcode': [],\n",
       "        'distance': '245',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009'},\n",
       "       {'lcode': [],\n",
       "        'distance': '512',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786'},\n",
       "       {'lcode': [],\n",
       "        'distance': '334',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.671081,23.617786;113.667895,23.617096'},\n",
       "       {'lcode': [],\n",
       "        'distance': '163',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.667895,23.617096;113.666341,23.616736'},\n",
       "       {'lcode': [],\n",
       "        'distance': '44',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.666341,23.616736;113.665916,23.616649'},\n",
       "       {'lcode': [],\n",
       "        'distance': '244',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665916,23.616649;113.664549,23.616345;113.663585,23.616128'},\n",
       "       {'lcode': [],\n",
       "        'distance': '8',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.663585,23.616128;113.663507,23.616107'},\n",
       "       {'lcode': [],\n",
       "        'distance': '29',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.663507,23.616107;113.663225,23.616042'},\n",
       "       {'lcode': [],\n",
       "        'distance': '68',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.663225,23.616042;113.662569,23.615911'},\n",
       "       {'lcode': [],\n",
       "        'distance': '93',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.662569,23.615911;113.662027,23.615803;113.661684,23.615712'},\n",
       "       {'lcode': [],\n",
       "        'distance': '134',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.661684,23.615712;113.660404,23.615417'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '沿龙泉路向东南行驶1.9千米左转',\n",
       "      'orientation': '东南',\n",
       "      'road': '龙泉路',\n",
       "      'distance': '1858',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '187',\n",
       "      'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349;113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891;113.665694,23.606523;113.667018,23.602865;113.667179,23.602465;113.667361,23.601984;113.667465,23.601688;113.667565,23.601437;113.667665,23.601159;113.667773,23.600877;113.667943,23.600412',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '113',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831'},\n",
       "       {'lcode': [],\n",
       "        'distance': '70',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349'},\n",
       "       {'lcode': [],\n",
       "        'distance': '23',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.661736,23.614349;113.661797,23.614145'},\n",
       "       {'lcode': [],\n",
       "        'distance': '153',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142'},\n",
       "       {'lcode': [],\n",
       "        'distance': '626',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891'},\n",
       "       {'lcode': [],\n",
       "        'distance': '163',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665095,23.607891;113.665694,23.606523'},\n",
       "       {'lcode': [],\n",
       "        'distance': '426',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665694,23.606523;113.667018,23.602865'},\n",
       "       {'lcode': [],\n",
       "        'distance': '47',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667018,23.602865;113.667179,23.602465'},\n",
       "       {'lcode': [],\n",
       "        'distance': '56',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667179,23.602465;113.667361,23.601984'},\n",
       "       {'lcode': [],\n",
       "        'distance': '34',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667361,23.601984;113.667465,23.601688'},\n",
       "       {'lcode': [],\n",
       "        'distance': '29',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667465,23.601688;113.667565,23.601437'},\n",
       "       {'lcode': [],\n",
       "        'distance': '32',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667565,23.601437;113.667665,23.601159'},\n",
       "       {'lcode': [],\n",
       "        'distance': '32',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667665,23.601159;113.667773,23.600877'},\n",
       "       {'lcode': [],\n",
       "        'distance': '54',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667773,23.600877;113.667943,23.600412'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '沿桃园东路向东北行驶82米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '82',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '22',\n",
       "      'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '82',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "      'orientation': '西北',\n",
       "      'road': '龙岗福安街',\n",
       "      'distance': '48',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '32',\n",
       "      'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '48',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       "     {'instruction': '向西行驶35米到达目的地',\n",
       "      'orientation': '西',\n",
       "      'distance': '35',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '12',\n",
       "      'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '8',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.668398,23.60112;113.668325,23.601094'},\n",
       "       {'lcode': [],\n",
       "        'distance': '27',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016'}],\n",
       "      'cities': [{'name': '广州市',\n",
       "        'citycode': '020',\n",
       "        'adcode': '440100',\n",
       "        'districts': [{'name': '从化区', 'adcode': '440117'}]}]}],\n",
       "    'restriction': '0',\n",
       "    'traffic_lights': '0'}]}}"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "car(key1,起始点_中大南方,目的地_龙岗)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 骑行路径规划 \n",
    "> * 1、url：https://restapi.amap.com/v4/direction/bicycling?parameters\n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、origin（出发点（经纬度）），destination（目的地（经纬度））\n",
    ">> * 2、可选：无"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'destination': '113.668051,23.600869',\n",
       "  'origin': '113.679287,23.632575',\n",
       "  'paths': [{'distance': 4957,\n",
       "    'duration': 1190,\n",
       "    'steps': [{'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 101,\n",
       "      'duration': 24,\n",
       "      'instruction': '向东骑行101米右转',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 199,\n",
       "      'duration': 48,\n",
       "      'instruction': '向南骑行199米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 159,\n",
       "      'duration': 38,\n",
       "      'instruction': '向西骑行159米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 237,\n",
       "      'duration': 57,\n",
       "      'instruction': '向南骑行237米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 498,\n",
       "      'duration': 120,\n",
       "      'instruction': '向南骑行498米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 722,\n",
       "      'duration': 173,\n",
       "      'instruction': '向西南骑行722米左转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 412,\n",
       "      'duration': 99,\n",
       "      'instruction': '向东南骑行412米向右前方行驶',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1381,\n",
       "      'duration': 331,\n",
       "      'instruction': '沿乌土街向南骑行1381米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "      'road': '乌土街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 165,\n",
       "      'duration': 40,\n",
       "      'instruction': '沿乌土街向西南骑行165米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "      'road': '乌土街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 118,\n",
       "      'duration': 28,\n",
       "      'instruction': '沿934县道向西骑行118米直行',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "      'road': '934县道',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 674,\n",
       "      'duration': 162,\n",
       "      'instruction': '沿桃园东路向西南骑行674米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "      'road': '桃园东路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 247,\n",
       "      'duration': 59,\n",
       "      'instruction': '沿桃园东路向西南骑行247米右转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "      'road': '桃园东路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '',\n",
       "      'assistant_action': '到达目的地',\n",
       "      'distance': 44,\n",
       "      'duration': 11,\n",
       "      'instruction': '沿龙泉路向北骑行44米到达目的地',\n",
       "      'orientation': '北',\n",
       "      'polyline': '113.667943,23.600412;113.667812,23.600794',\n",
       "      'road': '龙泉路',\n",
       "      'walk_type': 0}]}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = 'https://restapi.amap.com/v4/direction/bicycling?parameters'\n",
    "params = {'key':key1,\n",
    "          'origin':起始点_中大南方,\n",
    "          'destination':目的地_龙岗,\n",
    "          }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'distance': 4957,\n",
       "  'duration': 1190,\n",
       "  'steps': [{'action': '右转',\n",
       "    'assistant_action': '',\n",
       "    'distance': 101,\n",
       "    'duration': 24,\n",
       "    'instruction': '向东骑行101米右转',\n",
       "    'orientation': '东',\n",
       "    'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "    'road': '',\n",
       "    'walk_type': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'distance': 199,\n",
       "    'duration': 48,\n",
       "    'instruction': '向南骑行199米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "    'road': '',\n",
       "    'walk_type': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'distance': 159,\n",
       "    'duration': 38,\n",
       "    'instruction': '向西骑行159米左转',\n",
       "    'orientation': '西',\n",
       "    'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "    'road': '',\n",
       "    'walk_type': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'distance': 237,\n",
       "    'duration': 57,\n",
       "    'instruction': '向南骑行237米左转',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "    'road': '',\n",
       "    'walk_type': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'distance': 498,\n",
       "    'duration': 120,\n",
       "    'instruction': '向南骑行498米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "    'road': '',\n",
       "    'walk_type': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'distance': 722,\n",
       "    'duration': 173,\n",
       "    'instruction': '向西南骑行722米左转',\n",
       "    'orientation': '西南',\n",
       "    'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "    'road': '',\n",
       "    'walk_type': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'distance': 412,\n",
       "    'duration': 99,\n",
       "    'instruction': '向东南骑行412米向右前方行驶',\n",
       "    'orientation': '东南',\n",
       "    'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "    'road': '',\n",
       "    'walk_type': 0},\n",
       "   {'action': '右转',\n",
       "    'assistant_action': '',\n",
       "    'distance': 1381,\n",
       "    'duration': 331,\n",
       "    'instruction': '沿乌土街向南骑行1381米右转',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "    'road': '乌土街',\n",
       "    'walk_type': 0},\n",
       "   {'action': '直行',\n",
       "    'assistant_action': '',\n",
       "    'distance': 165,\n",
       "    'duration': 40,\n",
       "    'instruction': '沿乌土街向西南骑行165米直行',\n",
       "    'orientation': '西南',\n",
       "    'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "    'road': '乌土街',\n",
       "    'walk_type': 0},\n",
       "   {'action': '直行',\n",
       "    'assistant_action': '',\n",
       "    'distance': 118,\n",
       "    'duration': 28,\n",
       "    'instruction': '沿934县道向西骑行118米直行',\n",
       "    'orientation': '西',\n",
       "    'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "    'road': '934县道',\n",
       "    'walk_type': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'distance': 674,\n",
       "    'duration': 162,\n",
       "    'instruction': '沿桃园东路向西南骑行674米向右前方行驶',\n",
       "    'orientation': '西南',\n",
       "    'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "    'road': '桃园东路',\n",
       "    'walk_type': 0},\n",
       "   {'action': '右转',\n",
       "    'assistant_action': '',\n",
       "    'distance': 247,\n",
       "    'duration': 59,\n",
       "    'instruction': '沿桃园东路向西南骑行247米右转',\n",
       "    'orientation': '西南',\n",
       "    'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "    'road': '桃园东路',\n",
       "    'walk_type': 0},\n",
       "   {'action': '',\n",
       "    'assistant_action': '到达目的地',\n",
       "    'distance': 44,\n",
       "    'duration': 11,\n",
       "    'instruction': '沿龙泉路向北骑行44米到达目的地',\n",
       "    'orientation': '北',\n",
       "    'polyline': '113.667943,23.600412;113.667812,23.600794',\n",
       "    'road': '龙泉路',\n",
       "    'walk_type': 0}]}]"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()['data']['paths']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>polyline</th>\n",
       "      <th>road</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>右转</td>\n",
       "      <td></td>\n",
       "      <td>101</td>\n",
       "      <td>24</td>\n",
       "      <td>向东骑行101米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>113.679592,23.632491;113.680586,23.632522</td>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向右前方行驶</td>\n",
       "      <td></td>\n",
       "      <td>199</td>\n",
       "      <td>48</td>\n",
       "      <td>向南骑行199米向右前方行驶</td>\n",
       "      <td>南</td>\n",
       "      <td>113.680586,23.632522;113.680638,23.63214;113.6...</td>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>左转</td>\n",
       "      <td></td>\n",
       "      <td>159</td>\n",
       "      <td>38</td>\n",
       "      <td>向西骑行159米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>113.680204,23.630838;113.680035,23.630773;113....</td>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>左转</td>\n",
       "      <td></td>\n",
       "      <td>237</td>\n",
       "      <td>57</td>\n",
       "      <td>向南骑行237米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>113.678711,23.63036;113.678711,23.62934;113.67...</td>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>向右前方行驶</td>\n",
       "      <td></td>\n",
       "      <td>498</td>\n",
       "      <td>120</td>\n",
       "      <td>向南骑行498米向右前方行驶</td>\n",
       "      <td>南</td>\n",
       "      <td>113.678273,23.628368;113.678572,23.628338;113....</td>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>左转</td>\n",
       "      <td></td>\n",
       "      <td>722</td>\n",
       "      <td>173</td>\n",
       "      <td>向西南骑行722米左转</td>\n",
       "      <td>西南</td>\n",
       "      <td>113.678572,23.624653;113.678559,23.62451;113.6...</td>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>向右前方行驶</td>\n",
       "      <td></td>\n",
       "      <td>412</td>\n",
       "      <td>99</td>\n",
       "      <td>向东南骑行412米向右前方行驶</td>\n",
       "      <td>东南</td>\n",
       "      <td>113.675239,23.620009;113.67549,23.620013;113.6...</td>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>右转</td>\n",
       "      <td></td>\n",
       "      <td>1381</td>\n",
       "      <td>331</td>\n",
       "      <td>沿乌土街向南骑行1381米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>113.678181,23.617652;113.678095,23.617205;113....</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>直行</td>\n",
       "      <td></td>\n",
       "      <td>165</td>\n",
       "      <td>40</td>\n",
       "      <td>沿乌土街向西南骑行165米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>113.677535,23.605668;113.676988,23.605373;113....</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>直行</td>\n",
       "      <td></td>\n",
       "      <td>118</td>\n",
       "      <td>28</td>\n",
       "      <td>沿934县道向西骑行118米直行</td>\n",
       "      <td>西</td>\n",
       "      <td>113.676159,23.604883;113.675799,23.604805;113....</td>\n",
       "      <td>934县道</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>向右前方行驶</td>\n",
       "      <td></td>\n",
       "      <td>674</td>\n",
       "      <td>162</td>\n",
       "      <td>沿桃园东路向西南骑行674米向右前方行驶</td>\n",
       "      <td>西南</td>\n",
       "      <td>113.675009,23.604735;113.674236,23.604683;113....</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>右转</td>\n",
       "      <td></td>\n",
       "      <td>247</td>\n",
       "      <td>59</td>\n",
       "      <td>沿桃园东路向西南骑行247米右转</td>\n",
       "      <td>西南</td>\n",
       "      <td>113.669714,23.601897;113.66964,23.601771;113.6...</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td></td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>44</td>\n",
       "      <td>11</td>\n",
       "      <td>沿龙泉路向北骑行44米到达目的地</td>\n",
       "      <td>北</td>\n",
       "      <td>113.667943,23.600412;113.667812,23.600794</td>\n",
       "      <td>龙泉路</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    action assistant_action  distance  duration           instruction  \\\n",
       "0       右转                        101        24            向东骑行101米右转   \n",
       "1   向右前方行驶                        199        48        向南骑行199米向右前方行驶   \n",
       "2       左转                        159        38            向西骑行159米左转   \n",
       "3       左转                        237        57            向南骑行237米左转   \n",
       "4   向右前方行驶                        498       120        向南骑行498米向右前方行驶   \n",
       "5       左转                        722       173           向西南骑行722米左转   \n",
       "6   向右前方行驶                        412        99       向东南骑行412米向右前方行驶   \n",
       "7       右转                       1381       331       沿乌土街向南骑行1381米右转   \n",
       "8       直行                        165        40       沿乌土街向西南骑行165米直行   \n",
       "9       直行                        118        28      沿934县道向西骑行118米直行   \n",
       "10  向右前方行驶                        674       162  沿桃园东路向西南骑行674米向右前方行驶   \n",
       "11      右转                        247        59      沿桃园东路向西南骑行247米右转   \n",
       "12                    到达目的地        44        11      沿龙泉路向北骑行44米到达目的地   \n",
       "\n",
       "   orientation                                           polyline   road  \\\n",
       "0            东          113.679592,23.632491;113.680586,23.632522          \n",
       "1            南  113.680586,23.632522;113.680638,23.63214;113.6...          \n",
       "2            西  113.680204,23.630838;113.680035,23.630773;113....          \n",
       "3            南  113.678711,23.63036;113.678711,23.62934;113.67...          \n",
       "4            南  113.678273,23.628368;113.678572,23.628338;113....          \n",
       "5           西南  113.678572,23.624653;113.678559,23.62451;113.6...          \n",
       "6           东南  113.675239,23.620009;113.67549,23.620013;113.6...          \n",
       "7            南  113.678181,23.617652;113.678095,23.617205;113....    乌土街   \n",
       "8           西南  113.677535,23.605668;113.676988,23.605373;113....    乌土街   \n",
       "9            西  113.676159,23.604883;113.675799,23.604805;113....  934县道   \n",
       "10          西南  113.675009,23.604735;113.674236,23.604683;113....   桃园东路   \n",
       "11          西南  113.669714,23.601897;113.66964,23.601771;113.6...   桃园东路   \n",
       "12           北          113.667943,23.600412;113.667812,23.600794    龙泉路   \n",
       "\n",
       "    walk_type  \n",
       "0           0  \n",
       "1           0  \n",
       "2           0  \n",
       "3           0  \n",
       "4           0  \n",
       "5           0  \n",
       "6           0  \n",
       "7           0  \n",
       "8           0  \n",
       "9           0  \n",
       "10          0  \n",
       "11          0  \n",
       "12          0  "
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['data']['paths'][0]['steps'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [],
   "source": [
    "def bike(key,origin,destination)->str:\n",
    "    \"\"\"获取高德API的骑行路径规划\n",
    "温馨提示：key是指高德api的密钥，请先去注册；\n",
    "          origin是指起始地点，destination是目的地\n",
    "          具体请查看：https://lbs.amap.com/api/webservice/guide/api/direction\n",
    "    \"\"\"\n",
    "    url = 'https://restapi.amap.com/v4/direction/bicycling?parameters'\n",
    "    params = {'key':key,\n",
    "          'origin':origin,\n",
    "          'destination':destination,\n",
    "          }\n",
    "    response = requests.get(url,params = params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'destination': '113.668051,23.600869',\n",
       "  'origin': '113.679287,23.632575',\n",
       "  'paths': [{'distance': 4957,\n",
       "    'duration': 1190,\n",
       "    'steps': [{'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 101,\n",
       "      'duration': 24,\n",
       "      'instruction': '向东骑行101米右转',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 199,\n",
       "      'duration': 48,\n",
       "      'instruction': '向南骑行199米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 159,\n",
       "      'duration': 38,\n",
       "      'instruction': '向西骑行159米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 237,\n",
       "      'duration': 57,\n",
       "      'instruction': '向南骑行237米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 498,\n",
       "      'duration': 120,\n",
       "      'instruction': '向南骑行498米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 722,\n",
       "      'duration': 173,\n",
       "      'instruction': '向西南骑行722米左转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 412,\n",
       "      'duration': 99,\n",
       "      'instruction': '向东南骑行412米向右前方行驶',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1381,\n",
       "      'duration': 331,\n",
       "      'instruction': '沿乌土街向南骑行1381米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "      'road': '乌土街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 165,\n",
       "      'duration': 40,\n",
       "      'instruction': '沿乌土街向西南骑行165米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "      'road': '乌土街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 118,\n",
       "      'duration': 28,\n",
       "      'instruction': '沿934县道向西骑行118米直行',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "      'road': '934县道',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 674,\n",
       "      'duration': 162,\n",
       "      'instruction': '沿桃园东路向西南骑行674米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "      'road': '桃园东路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 247,\n",
       "      'duration': 59,\n",
       "      'instruction': '沿桃园东路向西南骑行247米右转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "      'road': '桃园东路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '',\n",
       "      'assistant_action': '到达目的地',\n",
       "      'distance': 44,\n",
       "      'duration': 11,\n",
       "      'instruction': '沿龙泉路向北骑行44米到达目的地',\n",
       "      'orientation': '北',\n",
       "      'polyline': '113.667943,23.600412;113.667812,23.600794',\n",
       "      'road': '龙泉路',\n",
       "      'walk_type': 0}]}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "bike(key1,起始点_中大南方,目的地_龙岗)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 货车路径规划 \n",
    "> * 1、url：\thttps://restapi.amap.com/v4/direction/truck?parameters\n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、origin（出发点（经纬度）），destination（目的地（经纬度）），size （车辆大小）\n",
    ">> * 2、可选：originid(出发点poiid）,destinationid(目的地poiid），origintype（出发点poi类别）,destinationtype（终点的poi类别），strategy（驾车选择策略），waypoints（途经点），avoidpolygons（避让区域），avoidroad，province，number（填入除省份及标点之外，车牌的字母和数字（需大写））。用于判断限行相关。，cartype，ferry（在路径规划中，是否使用轮渡），roadaggregation（是否返回路径聚合信息），nosteps（是否返回steps字段内容），sig,output,callback,extensions"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'route': {'destination': '113.668051,23.600869',\n",
       "   'origin': '113.679287,23.632575',\n",
       "   'paths': [{'distance': 4922,\n",
       "     'duration': 846,\n",
       "     'restriction': 0,\n",
       "     'steps': [{'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 9,\n",
       "       'duration': 7,\n",
       "       'instruction': '向南行驶9米左转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 9,\n",
       "         'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '右转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 100,\n",
       "       'duration': 30,\n",
       "       'instruction': '向东行驶100米右转',\n",
       "       'orientation': '东',\n",
       "       'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 100,\n",
       "         'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 199,\n",
       "       'duration': 51,\n",
       "       'instruction': '向南行驶199米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 122,\n",
       "         'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432',\n",
       "         'status': '未知'},\n",
       "        {'distance': 77,\n",
       "         'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 159,\n",
       "       'duration': 35,\n",
       "       'instruction': '向西行驶159米左转',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 18,\n",
       "         'polyline': '113.680204,23.630838;113.68003,23.630768',\n",
       "         'status': '未知'},\n",
       "        {'distance': 42,\n",
       "         'polyline': '113.68003,23.630768;113.67964,23.630634',\n",
       "         'status': '未知'},\n",
       "        {'distance': 48,\n",
       "         'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469',\n",
       "         'status': '未知'},\n",
       "        {'distance': 51,\n",
       "         'polyline': '113.679197,23.630469;113.678711,23.63036',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 237,\n",
       "       'duration': 66,\n",
       "       'instruction': '向南行驶237米左转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 113,\n",
       "         'polyline': '113.678711,23.63036;113.678711,23.629336',\n",
       "         'status': '未知'},\n",
       "        {'distance': 124,\n",
       "         'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 105,\n",
       "       'duration': 53,\n",
       "       'instruction': '向东南行驶105米向右前方行驶',\n",
       "       'orientation': '东南',\n",
       "       'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 43,\n",
       "         'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303',\n",
       "         'status': '未知'},\n",
       "        {'distance': 62,\n",
       "         'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 393,\n",
       "       'duration': 59,\n",
       "       'instruction': '向南行驶393米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 72,\n",
       "         'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318',\n",
       "         'status': '未知'},\n",
       "        {'distance': 321,\n",
       "         'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 722,\n",
       "       'duration': 92,\n",
       "       'instruction': '向西南行驶722米左转',\n",
       "       'orientation': '西南',\n",
       "       'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 42,\n",
       "         'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 435,\n",
       "         'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 245,\n",
       "         'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 412,\n",
       "       'duration': 52,\n",
       "       'instruction': '沿乌土街向东南行驶412米向右前方行驶',\n",
       "       'orientation': '东南',\n",
       "       'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619987;113.675773,23.619944;113.676016,23.619792;113.676897,23.619188;113.677261,23.61878;113.678069,23.617826;113.678186,23.617652',\n",
       "       'road': '乌土街',\n",
       "       'tmcs': [{'distance': 390,\n",
       "         'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619987;113.675773,23.619944;113.676016,23.619792;113.676897,23.619188;113.677261,23.61878;113.678069,23.617826',\n",
       "         'status': '未知'},\n",
       "        {'distance': 22,\n",
       "         'polyline': '113.678069,23.617826;113.678186,23.617652',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '右转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 1381,\n",
       "       'duration': 210,\n",
       "       'instruction': '沿乌土街向南行驶1.4千米右转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.678186,23.617652;113.678095,23.617201;113.678047,23.61707;113.677969,23.616918;113.677739,23.616554;113.6776,23.616285;113.677387,23.615812;113.677339,23.615664;113.67714,23.614822;113.677049,23.614314;113.676923,23.613355;113.67684,23.612782;113.676593,23.611484;113.676415,23.610434;113.676402,23.61026;113.676489,23.609844;113.676506,23.609618;113.676489,23.609232;113.676411,23.608741;113.676415,23.608481;113.67648,23.608186;113.676606,23.60773;113.676819,23.606732;113.676866,23.606536;113.676918,23.606411;113.677014,23.60625;113.67753,23.605668',\n",
       "       'road': '乌土街',\n",
       "       'tmcs': [{'distance': 844,\n",
       "         'polyline': '113.678186,23.617652;113.678095,23.617201;113.678047,23.61707;113.677969,23.616918;113.677739,23.616554;113.6776,23.616285;113.677387,23.615812;113.677339,23.615664;113.67714,23.614822;113.677049,23.614314;113.676923,23.613355;113.67684,23.612782;113.676593,23.611484;113.676415,23.610434;113.676402,23.61026',\n",
       "         'status': '未知'},\n",
       "        {'distance': 537,\n",
       "         'polyline': '113.676402,23.61026;113.676489,23.609844;113.676506,23.609618;113.676489,23.609232;113.676411,23.608741;113.676415,23.608481;113.67648,23.608186;113.676606,23.60773;113.676819,23.606732;113.676866,23.606536;113.676918,23.606411;113.677014,23.60625;113.67753,23.605668',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向左前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 851,\n",
       "       'duration': 91,\n",
       "       'instruction': '沿乌土街途径桃园东路、934县道向西行驶851米向左前方行驶',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.67753,23.605668;113.676984,23.605369;113.676398,23.605;113.676159,23.604878;113.675799,23.6048;113.675508,23.604774;113.675009,23.604735;113.674232,23.604674;113.673889,23.604614;113.673459,23.604488;113.671671,23.604002;113.671536,23.603954;113.671406,23.60385;113.671059,23.603468;113.670803,23.60326;113.670521,23.603069;113.670191,23.602899;113.670022,23.602795',\n",
       "       'road': '乌土街',\n",
       "       'tmcs': [{'distance': 165,\n",
       "         'polyline': '113.67753,23.605668;113.676984,23.605369;113.676398,23.605;113.676159,23.604878',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 67,\n",
       "         'polyline': '113.676159,23.604878;113.675799,23.6048;113.675508,23.604774',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 51,\n",
       "         'polyline': '113.675508,23.604774;113.675009,23.604735',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 161,\n",
       "         'polyline': '113.675009,23.604735;113.674232,23.604674;113.673889,23.604614;113.673459,23.604488',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 312,\n",
       "         'polyline': '113.673459,23.604488;113.671671,23.604002;113.671536,23.603954;113.671406,23.60385;113.671059,23.603468;113.670803,23.60326',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 74,\n",
       "         'polyline': '113.670803,23.60326;113.670521,23.603069;113.670191,23.602899',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 21,\n",
       "         'polyline': '113.670191,23.602899;113.670022,23.602795',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 106,\n",
       "       'duration': 19,\n",
       "       'instruction': '沿桃园东路向南行驶106米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.670022,23.602795;113.669909,23.602682;113.669809,23.602513;113.669779,23.602409;113.669714,23.601897',\n",
       "       'road': '桃园东路',\n",
       "       'tmcs': [{'distance': 106,\n",
       "         'polyline': '113.670022,23.602795;113.669909,23.602682;113.669809,23.602513;113.669779,23.602409;113.669714,23.601897',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '右转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 165,\n",
       "       'duration': 37,\n",
       "       'instruction': '沿桃园东路向西南行驶165米右转',\n",
       "       'orientation': '西南',\n",
       "       'polyline': '113.669714,23.601897;113.669635,23.601771;113.669484,23.601554;113.66878,23.600855;113.668663,23.600764',\n",
       "       'road': '桃园东路',\n",
       "       'tmcs': [{'distance': 16,\n",
       "         'polyline': '113.669714,23.601897;113.669635,23.601771',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 28,\n",
       "         'polyline': '113.669635,23.601771;113.669484,23.601554',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 121,\n",
       "         'polyline': '113.669484,23.601554;113.66878,23.600855;113.668663,23.600764',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 48,\n",
       "       'duration': 32,\n",
       "       'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "       'orientation': '西北',\n",
       "       'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "       'road': '龙岗福安街',\n",
       "       'tmcs': [{'distance': 48,\n",
       "         'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '',\n",
       "       'assistant_action': '到达目的地',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 35,\n",
       "       'duration': 12,\n",
       "       'instruction': '向西行驶35米到达目的地',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 8,\n",
       "         'polyline': '113.668398,23.60112;113.668325,23.601094',\n",
       "         'status': '未知'},\n",
       "        {'distance': 27,\n",
       "         'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0}],\n",
       "     'strategy': '避免拥堵',\n",
       "     'toll_distance': 0,\n",
       "     'tolls': 0,\n",
       "     'traffic_lights': 0},\n",
       "    {'distance': 5576,\n",
       "     'duration': 839,\n",
       "     'restriction': 0,\n",
       "     'steps': [{'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 9,\n",
       "       'duration': 7,\n",
       "       'instruction': '向南行驶9米左转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 9,\n",
       "         'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '右转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 100,\n",
       "       'duration': 30,\n",
       "       'instruction': '向东行驶100米右转',\n",
       "       'orientation': '东',\n",
       "       'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 100,\n",
       "         'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 199,\n",
       "       'duration': 51,\n",
       "       'instruction': '向南行驶199米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 122,\n",
       "         'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432',\n",
       "         'status': '未知'},\n",
       "        {'distance': 77,\n",
       "         'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 159,\n",
       "       'duration': 35,\n",
       "       'instruction': '向西行驶159米左转',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 18,\n",
       "         'polyline': '113.680204,23.630838;113.68003,23.630768',\n",
       "         'status': '未知'},\n",
       "        {'distance': 42,\n",
       "         'polyline': '113.68003,23.630768;113.67964,23.630634',\n",
       "         'status': '未知'},\n",
       "        {'distance': 48,\n",
       "         'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469',\n",
       "         'status': '未知'},\n",
       "        {'distance': 51,\n",
       "         'polyline': '113.679197,23.630469;113.678711,23.63036',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 237,\n",
       "       'duration': 66,\n",
       "       'instruction': '向南行驶237米左转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 113,\n",
       "         'polyline': '113.678711,23.63036;113.678711,23.629336',\n",
       "         'status': '未知'},\n",
       "        {'distance': 124,\n",
       "         'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 105,\n",
       "       'duration': 53,\n",
       "       'instruction': '向东南行驶105米向右前方行驶',\n",
       "       'orientation': '东南',\n",
       "       'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 43,\n",
       "         'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303',\n",
       "         'status': '未知'},\n",
       "        {'distance': 62,\n",
       "         'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 393,\n",
       "       'duration': 59,\n",
       "       'instruction': '向南行驶393米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 72,\n",
       "         'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318',\n",
       "         'status': '未知'},\n",
       "        {'distance': 321,\n",
       "         'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 2351,\n",
       "       'duration': 285,\n",
       "       'instruction': '沿源富街途径源湖街向西南行驶2.4千米左转',\n",
       "       'orientation': '西南',\n",
       "       'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786;113.667895,23.617096;113.666341,23.616736;113.665916,23.616649;113.664549,23.616345;113.663585,23.616128;113.663507,23.616107;113.663225,23.616042;113.662569,23.615911;113.662027,23.615803;113.661684,23.615712;113.660404,23.615417',\n",
       "       'road': '源富街',\n",
       "       'tmcs': [{'distance': 42,\n",
       "         'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 435,\n",
       "         'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 245,\n",
       "         'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "         'status': '未知'},\n",
       "        {'distance': 512,\n",
       "         'polyline': '113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 334,\n",
       "         'polyline': '113.671081,23.617786;113.667895,23.617096',\n",
       "         'status': '未知'},\n",
       "        {'distance': 163,\n",
       "         'polyline': '113.667895,23.617096;113.666341,23.616736',\n",
       "         'status': '未知'},\n",
       "        {'distance': 44,\n",
       "         'polyline': '113.666341,23.616736;113.665916,23.616649',\n",
       "         'status': '未知'},\n",
       "        {'distance': 244,\n",
       "         'polyline': '113.665916,23.616649;113.664549,23.616345;113.663585,23.616128',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 8,\n",
       "         'polyline': '113.663585,23.616128;113.663507,23.616107',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 29,\n",
       "         'polyline': '113.663507,23.616107;113.663225,23.616042',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 68,\n",
       "         'polyline': '113.663225,23.616042;113.662569,23.615911',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 93,\n",
       "         'polyline': '113.662569,23.615911;113.662027,23.615803;113.661684,23.615712',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 134,\n",
       "         'polyline': '113.661684,23.615712;113.660404,23.615417',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 1858,\n",
       "       'duration': 187,\n",
       "       'instruction': '沿龙泉路向东南行驶1.9千米左转',\n",
       "       'orientation': '东南',\n",
       "       'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349;113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891;113.665694,23.606523;113.667018,23.602865;113.667179,23.602465;113.667361,23.601984;113.667465,23.601688;113.667565,23.601437;113.667665,23.601159;113.667773,23.600877;113.667943,23.600412',\n",
       "       'road': '龙泉路',\n",
       "       'tmcs': [{'distance': 113,\n",
       "         'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 70,\n",
       "         'polyline': '113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 23,\n",
       "         'polyline': '113.661736,23.614349;113.661797,23.614145',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 153,\n",
       "         'polyline': '113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 626,\n",
       "         'polyline': '113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 163,\n",
       "         'polyline': '113.665095,23.607891;113.665694,23.606523',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 426,\n",
       "         'polyline': '113.665694,23.606523;113.667018,23.602865',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 47,\n",
       "         'polyline': '113.667018,23.602865;113.667179,23.602465',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 56,\n",
       "         'polyline': '113.667179,23.602465;113.667361,23.601984',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 34,\n",
       "         'polyline': '113.667361,23.601984;113.667465,23.601688',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 29,\n",
       "         'polyline': '113.667465,23.601688;113.667565,23.601437',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 32,\n",
       "         'polyline': '113.667565,23.601437;113.667665,23.601159',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 32,\n",
       "         'polyline': '113.667665,23.601159;113.667773,23.600877',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 54,\n",
       "         'polyline': '113.667773,23.600877;113.667943,23.600412',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 82,\n",
       "       'duration': 22,\n",
       "       'instruction': '沿桃园东路向东北行驶82米左转',\n",
       "       'orientation': '东北',\n",
       "       'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "       'road': '桃园东路',\n",
       "       'tmcs': [{'distance': 82,\n",
       "         'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 48,\n",
       "       'duration': 32,\n",
       "       'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "       'orientation': '西北',\n",
       "       'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "       'road': '龙岗福安街',\n",
       "       'tmcs': [{'distance': 48,\n",
       "         'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '',\n",
       "       'assistant_action': '到达目的地',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 35,\n",
       "       'duration': 12,\n",
       "       'instruction': '向西行驶35米到达目的地',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 8,\n",
       "         'polyline': '113.668398,23.60112;113.668325,23.601094',\n",
       "         'status': '未知'},\n",
       "        {'distance': 27,\n",
       "         'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0}],\n",
       "     'strategy': '避免拥堵',\n",
       "     'toll_distance': 0,\n",
       "     'tolls': 0,\n",
       "     'traffic_lights': 0}]},\n",
       "  'count': 2},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = 'https://restapi.amap.com/v4/direction/truck?parameters'\n",
    "params = {'key':key1,\n",
    "          'origin':起始点_中大南方,\n",
    "          'destination':目的地_龙岗,\n",
    "          'size':1\n",
    "          }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'distance': 4922,\n",
       "  'duration': 846,\n",
       "  'restriction': 0,\n",
       "  'steps': [{'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None}],\n",
       "    'distance': 9,\n",
       "    'duration': 7,\n",
       "    'instruction': '向南行驶9米左转',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 9,\n",
       "      'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '右转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None}],\n",
       "    'distance': 100,\n",
       "    'duration': 30,\n",
       "    'instruction': '向东行驶100米右转',\n",
       "    'orientation': '东',\n",
       "    'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 100,\n",
       "      'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 199,\n",
       "    'duration': 51,\n",
       "    'instruction': '向南行驶199米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 122,\n",
       "      'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432',\n",
       "      'status': '未知'},\n",
       "     {'distance': 77,\n",
       "      'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 159,\n",
       "    'duration': 35,\n",
       "    'instruction': '向西行驶159米左转',\n",
       "    'orientation': '西',\n",
       "    'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 18,\n",
       "      'polyline': '113.680204,23.630838;113.68003,23.630768',\n",
       "      'status': '未知'},\n",
       "     {'distance': 42,\n",
       "      'polyline': '113.68003,23.630768;113.67964,23.630634',\n",
       "      'status': '未知'},\n",
       "     {'distance': 48,\n",
       "      'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469',\n",
       "      'status': '未知'},\n",
       "     {'distance': 51,\n",
       "      'polyline': '113.679197,23.630469;113.678711,23.63036',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 237,\n",
       "    'duration': 66,\n",
       "    'instruction': '向南行驶237米左转',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 113,\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.629336',\n",
       "      'status': '未知'},\n",
       "     {'distance': 124,\n",
       "      'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 105,\n",
       "    'duration': 53,\n",
       "    'instruction': '向东南行驶105米向右前方行驶',\n",
       "    'orientation': '东南',\n",
       "    'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 43,\n",
       "      'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303',\n",
       "      'status': '未知'},\n",
       "     {'distance': 62,\n",
       "      'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 393,\n",
       "    'duration': 59,\n",
       "    'instruction': '向南行驶393米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 72,\n",
       "      'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318',\n",
       "      'status': '未知'},\n",
       "     {'distance': 321,\n",
       "      'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "      'status': '畅通'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 722,\n",
       "    'duration': 92,\n",
       "    'instruction': '向西南行驶722米左转',\n",
       "    'orientation': '西南',\n",
       "    'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 42,\n",
       "      'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 435,\n",
       "      'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 245,\n",
       "      'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 412,\n",
       "    'duration': 52,\n",
       "    'instruction': '沿乌土街向东南行驶412米向右前方行驶',\n",
       "    'orientation': '东南',\n",
       "    'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619987;113.675773,23.619944;113.676016,23.619792;113.676897,23.619188;113.677261,23.61878;113.678069,23.617826;113.678186,23.617652',\n",
       "    'road': '乌土街',\n",
       "    'tmcs': [{'distance': 390,\n",
       "      'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619987;113.675773,23.619944;113.676016,23.619792;113.676897,23.619188;113.677261,23.61878;113.678069,23.617826',\n",
       "      'status': '未知'},\n",
       "     {'distance': 22,\n",
       "      'polyline': '113.678069,23.617826;113.678186,23.617652',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '右转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 1381,\n",
       "    'duration': 210,\n",
       "    'instruction': '沿乌土街向南行驶1.4千米右转',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.678186,23.617652;113.678095,23.617201;113.678047,23.61707;113.677969,23.616918;113.677739,23.616554;113.6776,23.616285;113.677387,23.615812;113.677339,23.615664;113.67714,23.614822;113.677049,23.614314;113.676923,23.613355;113.67684,23.612782;113.676593,23.611484;113.676415,23.610434;113.676402,23.61026;113.676489,23.609844;113.676506,23.609618;113.676489,23.609232;113.676411,23.608741;113.676415,23.608481;113.67648,23.608186;113.676606,23.60773;113.676819,23.606732;113.676866,23.606536;113.676918,23.606411;113.677014,23.60625;113.67753,23.605668',\n",
       "    'road': '乌土街',\n",
       "    'tmcs': [{'distance': 844,\n",
       "      'polyline': '113.678186,23.617652;113.678095,23.617201;113.678047,23.61707;113.677969,23.616918;113.677739,23.616554;113.6776,23.616285;113.677387,23.615812;113.677339,23.615664;113.67714,23.614822;113.677049,23.614314;113.676923,23.613355;113.67684,23.612782;113.676593,23.611484;113.676415,23.610434;113.676402,23.61026',\n",
       "      'status': '未知'},\n",
       "     {'distance': 537,\n",
       "      'polyline': '113.676402,23.61026;113.676489,23.609844;113.676506,23.609618;113.676489,23.609232;113.676411,23.608741;113.676415,23.608481;113.67648,23.608186;113.676606,23.60773;113.676819,23.606732;113.676866,23.606536;113.676918,23.606411;113.677014,23.60625;113.67753,23.605668',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向左前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 851,\n",
       "    'duration': 91,\n",
       "    'instruction': '沿乌土街途径桃园东路、934县道向西行驶851米向左前方行驶',\n",
       "    'orientation': '西',\n",
       "    'polyline': '113.67753,23.605668;113.676984,23.605369;113.676398,23.605;113.676159,23.604878;113.675799,23.6048;113.675508,23.604774;113.675009,23.604735;113.674232,23.604674;113.673889,23.604614;113.673459,23.604488;113.671671,23.604002;113.671536,23.603954;113.671406,23.60385;113.671059,23.603468;113.670803,23.60326;113.670521,23.603069;113.670191,23.602899;113.670022,23.602795',\n",
       "    'road': '乌土街',\n",
       "    'tmcs': [{'distance': 165,\n",
       "      'polyline': '113.67753,23.605668;113.676984,23.605369;113.676398,23.605;113.676159,23.604878',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 67,\n",
       "      'polyline': '113.676159,23.604878;113.675799,23.6048;113.675508,23.604774',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 51,\n",
       "      'polyline': '113.675508,23.604774;113.675009,23.604735',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 161,\n",
       "      'polyline': '113.675009,23.604735;113.674232,23.604674;113.673889,23.604614;113.673459,23.604488',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 312,\n",
       "      'polyline': '113.673459,23.604488;113.671671,23.604002;113.671536,23.603954;113.671406,23.60385;113.671059,23.603468;113.670803,23.60326',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 74,\n",
       "      'polyline': '113.670803,23.60326;113.670521,23.603069;113.670191,23.602899',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 21,\n",
       "      'polyline': '113.670191,23.602899;113.670022,23.602795',\n",
       "      'status': '畅通'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None}],\n",
       "    'distance': 106,\n",
       "    'duration': 19,\n",
       "    'instruction': '沿桃园东路向南行驶106米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.670022,23.602795;113.669909,23.602682;113.669809,23.602513;113.669779,23.602409;113.669714,23.601897',\n",
       "    'road': '桃园东路',\n",
       "    'tmcs': [{'distance': 106,\n",
       "      'polyline': '113.670022,23.602795;113.669909,23.602682;113.669809,23.602513;113.669779,23.602409;113.669714,23.601897',\n",
       "      'status': '畅通'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '右转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 165,\n",
       "    'duration': 37,\n",
       "    'instruction': '沿桃园东路向西南行驶165米右转',\n",
       "    'orientation': '西南',\n",
       "    'polyline': '113.669714,23.601897;113.669635,23.601771;113.669484,23.601554;113.66878,23.600855;113.668663,23.600764',\n",
       "    'road': '桃园东路',\n",
       "    'tmcs': [{'distance': 16,\n",
       "      'polyline': '113.669714,23.601897;113.669635,23.601771',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 28,\n",
       "      'polyline': '113.669635,23.601771;113.669484,23.601554',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 121,\n",
       "      'polyline': '113.669484,23.601554;113.66878,23.600855;113.668663,23.600764',\n",
       "      'status': '畅通'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None}],\n",
       "    'distance': 48,\n",
       "    'duration': 32,\n",
       "    'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "    'orientation': '西北',\n",
       "    'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "    'road': '龙岗福安街',\n",
       "    'tmcs': [{'distance': 48,\n",
       "      'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '',\n",
       "    'assistant_action': '到达目的地',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 35,\n",
       "    'duration': 12,\n",
       "    'instruction': '向西行驶35米到达目的地',\n",
       "    'orientation': '西',\n",
       "    'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 8,\n",
       "      'polyline': '113.668398,23.60112;113.668325,23.601094',\n",
       "      'status': '未知'},\n",
       "     {'distance': 27,\n",
       "      'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0}],\n",
       "  'strategy': '避免拥堵',\n",
       "  'toll_distance': 0,\n",
       "  'tolls': 0,\n",
       "  'traffic_lights': 0},\n",
       " {'distance': 5576,\n",
       "  'duration': 839,\n",
       "  'restriction': 0,\n",
       "  'steps': [{'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None}],\n",
       "    'distance': 9,\n",
       "    'duration': 7,\n",
       "    'instruction': '向南行驶9米左转',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 9,\n",
       "      'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '右转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None}],\n",
       "    'distance': 100,\n",
       "    'duration': 30,\n",
       "    'instruction': '向东行驶100米右转',\n",
       "    'orientation': '东',\n",
       "    'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 100,\n",
       "      'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 199,\n",
       "    'duration': 51,\n",
       "    'instruction': '向南行驶199米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 122,\n",
       "      'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432',\n",
       "      'status': '未知'},\n",
       "     {'distance': 77,\n",
       "      'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 159,\n",
       "    'duration': 35,\n",
       "    'instruction': '向西行驶159米左转',\n",
       "    'orientation': '西',\n",
       "    'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 18,\n",
       "      'polyline': '113.680204,23.630838;113.68003,23.630768',\n",
       "      'status': '未知'},\n",
       "     {'distance': 42,\n",
       "      'polyline': '113.68003,23.630768;113.67964,23.630634',\n",
       "      'status': '未知'},\n",
       "     {'distance': 48,\n",
       "      'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469',\n",
       "      'status': '未知'},\n",
       "     {'distance': 51,\n",
       "      'polyline': '113.679197,23.630469;113.678711,23.63036',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 237,\n",
       "    'duration': 66,\n",
       "    'instruction': '向南行驶237米左转',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 113,\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.629336',\n",
       "      'status': '未知'},\n",
       "     {'distance': 124,\n",
       "      'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 105,\n",
       "    'duration': 53,\n",
       "    'instruction': '向东南行驶105米向右前方行驶',\n",
       "    'orientation': '东南',\n",
       "    'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 43,\n",
       "      'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303',\n",
       "      'status': '未知'},\n",
       "     {'distance': 62,\n",
       "      'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '向右前方行驶',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 393,\n",
       "    'duration': 59,\n",
       "    'instruction': '向南行驶393米向右前方行驶',\n",
       "    'orientation': '南',\n",
       "    'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 72,\n",
       "      'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318',\n",
       "      'status': '未知'},\n",
       "     {'distance': 321,\n",
       "      'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "      'status': '畅通'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 2351,\n",
       "    'duration': 285,\n",
       "    'instruction': '沿源富街途径源湖街向西南行驶2.4千米左转',\n",
       "    'orientation': '西南',\n",
       "    'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786;113.667895,23.617096;113.666341,23.616736;113.665916,23.616649;113.664549,23.616345;113.663585,23.616128;113.663507,23.616107;113.663225,23.616042;113.662569,23.615911;113.662027,23.615803;113.661684,23.615712;113.660404,23.615417',\n",
       "    'road': '源富街',\n",
       "    'tmcs': [{'distance': 42,\n",
       "      'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 435,\n",
       "      'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 245,\n",
       "      'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "      'status': '未知'},\n",
       "     {'distance': 512,\n",
       "      'polyline': '113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 334,\n",
       "      'polyline': '113.671081,23.617786;113.667895,23.617096',\n",
       "      'status': '未知'},\n",
       "     {'distance': 163,\n",
       "      'polyline': '113.667895,23.617096;113.666341,23.616736',\n",
       "      'status': '未知'},\n",
       "     {'distance': 44,\n",
       "      'polyline': '113.666341,23.616736;113.665916,23.616649',\n",
       "      'status': '未知'},\n",
       "     {'distance': 244,\n",
       "      'polyline': '113.665916,23.616649;113.664549,23.616345;113.663585,23.616128',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 8,\n",
       "      'polyline': '113.663585,23.616128;113.663507,23.616107',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 29,\n",
       "      'polyline': '113.663507,23.616107;113.663225,23.616042',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 68,\n",
       "      'polyline': '113.663225,23.616042;113.662569,23.615911',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 93,\n",
       "      'polyline': '113.662569,23.615911;113.662027,23.615803;113.661684,23.615712',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 134,\n",
       "      'polyline': '113.661684,23.615712;113.660404,23.615417',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 1858,\n",
       "    'duration': 187,\n",
       "    'instruction': '沿龙泉路向东南行驶1.9千米左转',\n",
       "    'orientation': '东南',\n",
       "    'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349;113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891;113.665694,23.606523;113.667018,23.602865;113.667179,23.602465;113.667361,23.601984;113.667465,23.601688;113.667565,23.601437;113.667665,23.601159;113.667773,23.600877;113.667943,23.600412',\n",
       "    'road': '龙泉路',\n",
       "    'tmcs': [{'distance': 113,\n",
       "      'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 70,\n",
       "      'polyline': '113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 23,\n",
       "      'polyline': '113.661736,23.614349;113.661797,23.614145',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 153,\n",
       "      'polyline': '113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 626,\n",
       "      'polyline': '113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 163,\n",
       "      'polyline': '113.665095,23.607891;113.665694,23.606523',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 426,\n",
       "      'polyline': '113.665694,23.606523;113.667018,23.602865',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 47,\n",
       "      'polyline': '113.667018,23.602865;113.667179,23.602465',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 56,\n",
       "      'polyline': '113.667179,23.602465;113.667361,23.601984',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 34,\n",
       "      'polyline': '113.667361,23.601984;113.667465,23.601688',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 29,\n",
       "      'polyline': '113.667465,23.601688;113.667565,23.601437',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 32,\n",
       "      'polyline': '113.667565,23.601437;113.667665,23.601159',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 32,\n",
       "      'polyline': '113.667665,23.601159;113.667773,23.600877',\n",
       "      'status': '畅通'},\n",
       "     {'distance': 54,\n",
       "      'polyline': '113.667773,23.600877;113.667943,23.600412',\n",
       "      'status': '畅通'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None}],\n",
       "    'distance': 82,\n",
       "    'duration': 22,\n",
       "    'instruction': '沿桃园东路向东北行驶82米左转',\n",
       "    'orientation': '东北',\n",
       "    'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "    'road': '桃园东路',\n",
       "    'tmcs': [{'distance': 82,\n",
       "      'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "      'status': '畅通'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '左转',\n",
       "    'assistant_action': '',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None}],\n",
       "    'distance': 48,\n",
       "    'duration': 32,\n",
       "    'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "    'orientation': '西北',\n",
       "    'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "    'road': '龙岗福安街',\n",
       "    'tmcs': [{'distance': 48,\n",
       "      'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0},\n",
       "   {'action': '',\n",
       "    'assistant_action': '到达目的地',\n",
       "    'cities': [{'adcode': '440117',\n",
       "      'citycode': None,\n",
       "      'districts': [],\n",
       "      'name': None},\n",
       "     {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "    'distance': 35,\n",
       "    'duration': 12,\n",
       "    'instruction': '向西行驶35米到达目的地',\n",
       "    'orientation': '西',\n",
       "    'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "    'road': None,\n",
       "    'tmcs': [{'distance': 8,\n",
       "      'polyline': '113.668398,23.60112;113.668325,23.601094',\n",
       "      'status': '未知'},\n",
       "     {'distance': 27,\n",
       "      'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "      'status': '未知'}],\n",
       "    'toll_distance': 0,\n",
       "    'toll_road': '',\n",
       "    'tolls': 0}],\n",
       "  'strategy': '避免拥堵',\n",
       "  'toll_distance': 0,\n",
       "  'tolls': 0,\n",
       "  'traffic_lights': 0}]"
      ]
     },
     "execution_count": 46,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()['data']['route']['paths']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>restriction</th>\n",
       "      <th>steps</th>\n",
       "      <th>strategy</th>\n",
       "      <th>toll_distance</th>\n",
       "      <th>tolls</th>\n",
       "      <th>traffic_lights</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>4922</td>\n",
       "      <td>846</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'action': '左转', 'assistant_action': '', 'cit...</td>\n",
       "      <td>避免拥堵</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5576</td>\n",
       "      <td>839</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'action': '左转', 'assistant_action': '', 'cit...</td>\n",
       "      <td>避免拥堵</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   distance  duration  restriction  \\\n",
       "0      4922       846            0   \n",
       "1      5576       839            0   \n",
       "\n",
       "                                               steps strategy  toll_distance  \\\n",
       "0  [{'action': '左转', 'assistant_action': '', 'cit...     避免拥堵              0   \n",
       "1  [{'action': '左转', 'assistant_action': '', 'cit...     避免拥堵              0   \n",
       "\n",
       "   tolls  traffic_lights  \n",
       "0      0               0  \n",
       "1      0               0  "
      ]
     },
     "execution_count": 47,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['data']['route']['paths'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [],
   "source": [
    "def truck(key,origin,destination,size,originid = None,destinationid = None,origintype = None,destinationtype = None,strategy = 10,waypoints = None,avoidpolygons = None,avoidroad = None,province = None,number = None,cartype = 0,ferry = 0,adaggregation = 'true',nosteps = 0,sig = None,output = 'json',callback = None,extensions = 'base')->str:\n",
    "    \"\"\"驾车的路径规划，orgigin与destination通过上面的geo函数获得\"\"\"\n",
    "    url = \"https://restapi.amap.com/v4/direction/truck?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"destination\":destination,\n",
    "    \"origin\":origin,\n",
    "    \"size\":size,  \n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'route': {'destination': '113.668051,23.600869',\n",
       "   'origin': '113.679287,23.632575',\n",
       "   'paths': [{'distance': 4922,\n",
       "     'duration': 846,\n",
       "     'restriction': 0,\n",
       "     'steps': [{'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 9,\n",
       "       'duration': 7,\n",
       "       'instruction': '向南行驶9米左转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 9,\n",
       "         'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '右转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 100,\n",
       "       'duration': 30,\n",
       "       'instruction': '向东行驶100米右转',\n",
       "       'orientation': '东',\n",
       "       'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 100,\n",
       "         'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 199,\n",
       "       'duration': 51,\n",
       "       'instruction': '向南行驶199米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 122,\n",
       "         'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432',\n",
       "         'status': '未知'},\n",
       "        {'distance': 77,\n",
       "         'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 159,\n",
       "       'duration': 35,\n",
       "       'instruction': '向西行驶159米左转',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 18,\n",
       "         'polyline': '113.680204,23.630838;113.68003,23.630768',\n",
       "         'status': '未知'},\n",
       "        {'distance': 42,\n",
       "         'polyline': '113.68003,23.630768;113.67964,23.630634',\n",
       "         'status': '未知'},\n",
       "        {'distance': 48,\n",
       "         'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469',\n",
       "         'status': '未知'},\n",
       "        {'distance': 51,\n",
       "         'polyline': '113.679197,23.630469;113.678711,23.63036',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 237,\n",
       "       'duration': 66,\n",
       "       'instruction': '向南行驶237米左转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 113,\n",
       "         'polyline': '113.678711,23.63036;113.678711,23.629336',\n",
       "         'status': '未知'},\n",
       "        {'distance': 124,\n",
       "         'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 105,\n",
       "       'duration': 53,\n",
       "       'instruction': '向东南行驶105米向右前方行驶',\n",
       "       'orientation': '东南',\n",
       "       'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 43,\n",
       "         'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303',\n",
       "         'status': '未知'},\n",
       "        {'distance': 62,\n",
       "         'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 393,\n",
       "       'duration': 59,\n",
       "       'instruction': '向南行驶393米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 72,\n",
       "         'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318',\n",
       "         'status': '未知'},\n",
       "        {'distance': 321,\n",
       "         'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 722,\n",
       "       'duration': 92,\n",
       "       'instruction': '向西南行驶722米左转',\n",
       "       'orientation': '西南',\n",
       "       'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 42,\n",
       "         'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 435,\n",
       "         'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 245,\n",
       "         'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 412,\n",
       "       'duration': 52,\n",
       "       'instruction': '沿乌土街向东南行驶412米向右前方行驶',\n",
       "       'orientation': '东南',\n",
       "       'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619987;113.675773,23.619944;113.676016,23.619792;113.676897,23.619188;113.677261,23.61878;113.678069,23.617826;113.678186,23.617652',\n",
       "       'road': '乌土街',\n",
       "       'tmcs': [{'distance': 390,\n",
       "         'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619987;113.675773,23.619944;113.676016,23.619792;113.676897,23.619188;113.677261,23.61878;113.678069,23.617826',\n",
       "         'status': '未知'},\n",
       "        {'distance': 22,\n",
       "         'polyline': '113.678069,23.617826;113.678186,23.617652',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '右转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 1381,\n",
       "       'duration': 210,\n",
       "       'instruction': '沿乌土街向南行驶1.4千米右转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.678186,23.617652;113.678095,23.617201;113.678047,23.61707;113.677969,23.616918;113.677739,23.616554;113.6776,23.616285;113.677387,23.615812;113.677339,23.615664;113.67714,23.614822;113.677049,23.614314;113.676923,23.613355;113.67684,23.612782;113.676593,23.611484;113.676415,23.610434;113.676402,23.61026;113.676489,23.609844;113.676506,23.609618;113.676489,23.609232;113.676411,23.608741;113.676415,23.608481;113.67648,23.608186;113.676606,23.60773;113.676819,23.606732;113.676866,23.606536;113.676918,23.606411;113.677014,23.60625;113.67753,23.605668',\n",
       "       'road': '乌土街',\n",
       "       'tmcs': [{'distance': 844,\n",
       "         'polyline': '113.678186,23.617652;113.678095,23.617201;113.678047,23.61707;113.677969,23.616918;113.677739,23.616554;113.6776,23.616285;113.677387,23.615812;113.677339,23.615664;113.67714,23.614822;113.677049,23.614314;113.676923,23.613355;113.67684,23.612782;113.676593,23.611484;113.676415,23.610434;113.676402,23.61026',\n",
       "         'status': '未知'},\n",
       "        {'distance': 537,\n",
       "         'polyline': '113.676402,23.61026;113.676489,23.609844;113.676506,23.609618;113.676489,23.609232;113.676411,23.608741;113.676415,23.608481;113.67648,23.608186;113.676606,23.60773;113.676819,23.606732;113.676866,23.606536;113.676918,23.606411;113.677014,23.60625;113.67753,23.605668',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向左前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 851,\n",
       "       'duration': 91,\n",
       "       'instruction': '沿乌土街途径桃园东路、934县道向西行驶851米向左前方行驶',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.67753,23.605668;113.676984,23.605369;113.676398,23.605;113.676159,23.604878;113.675799,23.6048;113.675508,23.604774;113.675009,23.604735;113.674232,23.604674;113.673889,23.604614;113.673459,23.604488;113.671671,23.604002;113.671536,23.603954;113.671406,23.60385;113.671059,23.603468;113.670803,23.60326;113.670521,23.603069;113.670191,23.602899;113.670022,23.602795',\n",
       "       'road': '乌土街',\n",
       "       'tmcs': [{'distance': 165,\n",
       "         'polyline': '113.67753,23.605668;113.676984,23.605369;113.676398,23.605;113.676159,23.604878',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 67,\n",
       "         'polyline': '113.676159,23.604878;113.675799,23.6048;113.675508,23.604774',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 51,\n",
       "         'polyline': '113.675508,23.604774;113.675009,23.604735',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 161,\n",
       "         'polyline': '113.675009,23.604735;113.674232,23.604674;113.673889,23.604614;113.673459,23.604488',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 312,\n",
       "         'polyline': '113.673459,23.604488;113.671671,23.604002;113.671536,23.603954;113.671406,23.60385;113.671059,23.603468;113.670803,23.60326',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 74,\n",
       "         'polyline': '113.670803,23.60326;113.670521,23.603069;113.670191,23.602899',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 21,\n",
       "         'polyline': '113.670191,23.602899;113.670022,23.602795',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 106,\n",
       "       'duration': 19,\n",
       "       'instruction': '沿桃园东路向南行驶106米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.670022,23.602795;113.669909,23.602682;113.669809,23.602513;113.669779,23.602409;113.669714,23.601897',\n",
       "       'road': '桃园东路',\n",
       "       'tmcs': [{'distance': 106,\n",
       "         'polyline': '113.670022,23.602795;113.669909,23.602682;113.669809,23.602513;113.669779,23.602409;113.669714,23.601897',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '右转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 165,\n",
       "       'duration': 37,\n",
       "       'instruction': '沿桃园东路向西南行驶165米右转',\n",
       "       'orientation': '西南',\n",
       "       'polyline': '113.669714,23.601897;113.669635,23.601771;113.669484,23.601554;113.66878,23.600855;113.668663,23.600764',\n",
       "       'road': '桃园东路',\n",
       "       'tmcs': [{'distance': 16,\n",
       "         'polyline': '113.669714,23.601897;113.669635,23.601771',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 28,\n",
       "         'polyline': '113.669635,23.601771;113.669484,23.601554',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 121,\n",
       "         'polyline': '113.669484,23.601554;113.66878,23.600855;113.668663,23.600764',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 48,\n",
       "       'duration': 32,\n",
       "       'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "       'orientation': '西北',\n",
       "       'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "       'road': '龙岗福安街',\n",
       "       'tmcs': [{'distance': 48,\n",
       "         'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '',\n",
       "       'assistant_action': '到达目的地',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 35,\n",
       "       'duration': 12,\n",
       "       'instruction': '向西行驶35米到达目的地',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 8,\n",
       "         'polyline': '113.668398,23.60112;113.668325,23.601094',\n",
       "         'status': '未知'},\n",
       "        {'distance': 27,\n",
       "         'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0}],\n",
       "     'strategy': '避免拥堵',\n",
       "     'toll_distance': 0,\n",
       "     'tolls': 0,\n",
       "     'traffic_lights': 0},\n",
       "    {'distance': 5576,\n",
       "     'duration': 839,\n",
       "     'restriction': 0,\n",
       "     'steps': [{'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 9,\n",
       "       'duration': 7,\n",
       "       'instruction': '向南行驶9米左转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 9,\n",
       "         'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '右转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 100,\n",
       "       'duration': 30,\n",
       "       'instruction': '向东行驶100米右转',\n",
       "       'orientation': '东',\n",
       "       'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 100,\n",
       "         'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 199,\n",
       "       'duration': 51,\n",
       "       'instruction': '向南行驶199米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 122,\n",
       "         'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432',\n",
       "         'status': '未知'},\n",
       "        {'distance': 77,\n",
       "         'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 159,\n",
       "       'duration': 35,\n",
       "       'instruction': '向西行驶159米左转',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 18,\n",
       "         'polyline': '113.680204,23.630838;113.68003,23.630768',\n",
       "         'status': '未知'},\n",
       "        {'distance': 42,\n",
       "         'polyline': '113.68003,23.630768;113.67964,23.630634',\n",
       "         'status': '未知'},\n",
       "        {'distance': 48,\n",
       "         'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469',\n",
       "         'status': '未知'},\n",
       "        {'distance': 51,\n",
       "         'polyline': '113.679197,23.630469;113.678711,23.63036',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 237,\n",
       "       'duration': 66,\n",
       "       'instruction': '向南行驶237米左转',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 113,\n",
       "         'polyline': '113.678711,23.63036;113.678711,23.629336',\n",
       "         'status': '未知'},\n",
       "        {'distance': 124,\n",
       "         'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 105,\n",
       "       'duration': 53,\n",
       "       'instruction': '向东南行驶105米向右前方行驶',\n",
       "       'orientation': '东南',\n",
       "       'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 43,\n",
       "         'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303',\n",
       "         'status': '未知'},\n",
       "        {'distance': 62,\n",
       "         'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '向右前方行驶',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 393,\n",
       "       'duration': 59,\n",
       "       'instruction': '向南行驶393米向右前方行驶',\n",
       "       'orientation': '南',\n",
       "       'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 72,\n",
       "         'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318',\n",
       "         'status': '未知'},\n",
       "        {'distance': 321,\n",
       "         'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 2351,\n",
       "       'duration': 285,\n",
       "       'instruction': '沿源富街途径源湖街向西南行驶2.4千米左转',\n",
       "       'orientation': '西南',\n",
       "       'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786;113.667895,23.617096;113.666341,23.616736;113.665916,23.616649;113.664549,23.616345;113.663585,23.616128;113.663507,23.616107;113.663225,23.616042;113.662569,23.615911;113.662027,23.615803;113.661684,23.615712;113.660404,23.615417',\n",
       "       'road': '源富街',\n",
       "       'tmcs': [{'distance': 42,\n",
       "         'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 435,\n",
       "         'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 245,\n",
       "         'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.675595,23.620369;113.675239,23.620009',\n",
       "         'status': '未知'},\n",
       "        {'distance': 512,\n",
       "         'polyline': '113.675239,23.620009;113.674931,23.619714;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 334,\n",
       "         'polyline': '113.671081,23.617786;113.667895,23.617096',\n",
       "         'status': '未知'},\n",
       "        {'distance': 163,\n",
       "         'polyline': '113.667895,23.617096;113.666341,23.616736',\n",
       "         'status': '未知'},\n",
       "        {'distance': 44,\n",
       "         'polyline': '113.666341,23.616736;113.665916,23.616649',\n",
       "         'status': '未知'},\n",
       "        {'distance': 244,\n",
       "         'polyline': '113.665916,23.616649;113.664549,23.616345;113.663585,23.616128',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 8,\n",
       "         'polyline': '113.663585,23.616128;113.663507,23.616107',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 29,\n",
       "         'polyline': '113.663507,23.616107;113.663225,23.616042',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 68,\n",
       "         'polyline': '113.663225,23.616042;113.662569,23.615911',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 93,\n",
       "         'polyline': '113.662569,23.615911;113.662027,23.615803;113.661684,23.615712',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 134,\n",
       "         'polyline': '113.661684,23.615712;113.660404,23.615417',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 1858,\n",
       "       'duration': 187,\n",
       "       'instruction': '沿龙泉路向东南行驶1.9千米左转',\n",
       "       'orientation': '东南',\n",
       "       'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349;113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891;113.665694,23.606523;113.667018,23.602865;113.667179,23.602465;113.667361,23.601984;113.667465,23.601688;113.667565,23.601437;113.667665,23.601159;113.667773,23.600877;113.667943,23.600412',\n",
       "       'road': '龙泉路',\n",
       "       'tmcs': [{'distance': 113,\n",
       "         'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 70,\n",
       "         'polyline': '113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 23,\n",
       "         'polyline': '113.661736,23.614349;113.661797,23.614145',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 153,\n",
       "         'polyline': '113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 626,\n",
       "         'polyline': '113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 163,\n",
       "         'polyline': '113.665095,23.607891;113.665694,23.606523',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 426,\n",
       "         'polyline': '113.665694,23.606523;113.667018,23.602865',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 47,\n",
       "         'polyline': '113.667018,23.602865;113.667179,23.602465',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 56,\n",
       "         'polyline': '113.667179,23.602465;113.667361,23.601984',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 34,\n",
       "         'polyline': '113.667361,23.601984;113.667465,23.601688',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 29,\n",
       "         'polyline': '113.667465,23.601688;113.667565,23.601437',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 32,\n",
       "         'polyline': '113.667565,23.601437;113.667665,23.601159',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 32,\n",
       "         'polyline': '113.667665,23.601159;113.667773,23.600877',\n",
       "         'status': '畅通'},\n",
       "        {'distance': 54,\n",
       "         'polyline': '113.667773,23.600877;113.667943,23.600412',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 82,\n",
       "       'duration': 22,\n",
       "       'instruction': '沿桃园东路向东北行驶82米左转',\n",
       "       'orientation': '东北',\n",
       "       'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "       'road': '桃园东路',\n",
       "       'tmcs': [{'distance': 82,\n",
       "         'polyline': '113.667943,23.600412;113.668437,23.600642;113.668663,23.600764',\n",
       "         'status': '畅通'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '左转',\n",
       "       'assistant_action': '',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None}],\n",
       "       'distance': 48,\n",
       "       'duration': 32,\n",
       "       'instruction': '沿龙岗福安街向西北行驶48米左转',\n",
       "       'orientation': '西北',\n",
       "       'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "       'road': '龙岗福安街',\n",
       "       'tmcs': [{'distance': 48,\n",
       "         'polyline': '113.668663,23.600764;113.668451,23.601003;113.668398,23.60112',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0},\n",
       "      {'action': '',\n",
       "       'assistant_action': '到达目的地',\n",
       "       'cities': [{'adcode': '440117',\n",
       "         'citycode': None,\n",
       "         'districts': [],\n",
       "         'name': None},\n",
       "        {'adcode': '440117', 'citycode': None, 'districts': [], 'name': None}],\n",
       "       'distance': 35,\n",
       "       'duration': 12,\n",
       "       'instruction': '向西行驶35米到达目的地',\n",
       "       'orientation': '西',\n",
       "       'polyline': '113.668398,23.60112;113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "       'road': None,\n",
       "       'tmcs': [{'distance': 8,\n",
       "         'polyline': '113.668398,23.60112;113.668325,23.601094',\n",
       "         'status': '未知'},\n",
       "        {'distance': 27,\n",
       "         'polyline': '113.668325,23.601094;113.668095,23.601011;113.668077,23.601016',\n",
       "         'status': '未知'}],\n",
       "       'toll_distance': 0,\n",
       "       'toll_road': '',\n",
       "       'tolls': 0}],\n",
       "     'strategy': '避免拥堵',\n",
       "     'toll_distance': 0,\n",
       "     'tolls': 0,\n",
       "     'traffic_lights': 0}]},\n",
       "  'count': 2},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "truck(key1,起始点_中大南方,目的地_龙岗,size = 1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>restriction</th>\n",
       "      <th>steps</th>\n",
       "      <th>strategy</th>\n",
       "      <th>toll_distance</th>\n",
       "      <th>tolls</th>\n",
       "      <th>traffic_lights</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>4922</td>\n",
       "      <td>846</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'action': '左转', 'assistant_action': '', 'cit...</td>\n",
       "      <td>避免拥堵</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5576</td>\n",
       "      <td>839</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'action': '左转', 'assistant_action': '', 'cit...</td>\n",
       "      <td>避免拥堵</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   distance  duration  restriction  \\\n",
       "0      4922       846            0   \n",
       "1      5576       839            0   \n",
       "\n",
       "                                               steps strategy  toll_distance  \\\n",
       "0  [{'action': '左转', 'assistant_action': '', 'cit...     避免拥堵              0   \n",
       "1  [{'action': '左转', 'assistant_action': '', 'cit...     避免拥堵              0   \n",
       "\n",
       "   tolls  traffic_lights  \n",
       "0      0               0  \n",
       "1      0               0  "
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(truck(key1,起始点_中大南方,目的地_龙岗,size = 1)['data']['route']['paths'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 行政区查询\n",
    "\n",
    "> * A、url:https://restapi.amap.com/v3/config/district?parameters\n",
    "> * B、requests.get()\n",
    "> * C、参数：\n",
    "\n",
    ">> * 1、必选：key\n",
    ">> * 2、可选：extensions（默认：base）可选“all”，描述数据详细制度,subdistrict(子级行政区),page(需要第几页数据),offset(最外层返回数据个数),extensions,filter(根据区划过滤),callback,output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = \"https://restapi.amap.com/v3/config/district?parameters\"\n",
    "params = {\n",
    "    \"key\":key1,\n",
    "    'keywords':\"广东省\",\n",
    "    \"subdistrict\":1,\n",
    "    \"page\":1,\n",
    "    \"offset\":20,\n",
    "    'extensions':'base',\n",
    "    \"output\":\"json\"\n",
    "}\n",
    "r = requests.get(url,params=params)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'districts': [{'citycode': [],\n",
       "   'adcode': '440000',\n",
       "   'name': '广东省',\n",
       "   'center': '113.280637,23.125178',\n",
       "   'level': 'province',\n",
       "   'districts': [{'citycode': '0754',\n",
       "     'adcode': '440500',\n",
       "     'name': '汕头市',\n",
       "     'center': '116.708463,23.37102',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0757',\n",
       "     'adcode': '440600',\n",
       "     'name': '佛山市',\n",
       "     'center': '113.122717,23.028762',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0758',\n",
       "     'adcode': '441200',\n",
       "     'name': '肇庆市',\n",
       "     'center': '112.472529,23.051546',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0752',\n",
       "     'adcode': '441300',\n",
       "     'name': '惠州市',\n",
       "     'center': '114.412599,23.079404',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440300',\n",
       "     'name': '深圳市',\n",
       "     'center': '114.085947,22.547',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0759',\n",
       "     'adcode': '440800',\n",
       "     'name': '湛江市',\n",
       "     'center': '110.364977,21.274898',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0756',\n",
       "     'adcode': '440400',\n",
       "     'name': '珠海市',\n",
       "     'center': '113.553986,22.224979',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0768',\n",
       "     'adcode': '445100',\n",
       "     'name': '潮州市',\n",
       "     'center': '116.632301,23.661701',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0668',\n",
       "     'adcode': '440900',\n",
       "     'name': '茂名市',\n",
       "     'center': '110.919229,21.659751',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0750',\n",
       "     'adcode': '440700',\n",
       "     'name': '江门市',\n",
       "     'center': '113.094942,22.590431',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441600',\n",
       "     'name': '河源市',\n",
       "     'center': '114.697802,23.746266',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0766',\n",
       "     'adcode': '445300',\n",
       "     'name': '云浮市',\n",
       "     'center': '112.044439,22.929801',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0660',\n",
       "     'adcode': '441500',\n",
       "     'name': '汕尾市',\n",
       "     'center': '115.364238,22.774485',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0662',\n",
       "     'adcode': '441700',\n",
       "     'name': '阳江市',\n",
       "     'center': '111.975107,21.859222',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0663',\n",
       "     'adcode': '445200',\n",
       "     'name': '揭阳市',\n",
       "     'center': '116.355733,23.543778',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0753',\n",
       "     'adcode': '441400',\n",
       "     'name': '梅州市',\n",
       "     'center': '116.117582,24.299112',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '020',\n",
       "     'adcode': '440100',\n",
       "     'name': '广州市',\n",
       "     'center': '113.280637,23.125178',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0751',\n",
       "     'adcode': '440200',\n",
       "     'name': '韶关市',\n",
       "     'center': '113.591544,24.801322',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0763',\n",
       "     'adcode': '441800',\n",
       "     'name': '清远市',\n",
       "     'center': '113.051227,23.685022',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0760',\n",
       "     'adcode': '442000',\n",
       "     'name': '中山市',\n",
       "     'center': '113.382391,22.521113',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0769',\n",
       "     'adcode': '441900',\n",
       "     'name': '东莞市',\n",
       "     'center': '113.746262,23.046237',\n",
       "     'level': 'city',\n",
       "     'districts': []}]}]}"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [],
   "source": [
    "def district(key,keywords,subdistrict=1,page=1,offset=20,extensions='base',filter=None,callback=None,output=\"JSON\"):\n",
    "    \"\"\"行政区域规划\n",
    "    keywords是你想要查询的关键词\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/config/district?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"keywords\":keywords,   \n",
    "     \"output\":\"json\"   \n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'districts': [{'citycode': [],\n",
       "   'adcode': '440000',\n",
       "   'name': '广东省',\n",
       "   'center': '113.280637,23.125178',\n",
       "   'level': 'province',\n",
       "   'districts': [{'citycode': '0754',\n",
       "     'adcode': '440500',\n",
       "     'name': '汕头市',\n",
       "     'center': '116.708463,23.37102',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0757',\n",
       "     'adcode': '440600',\n",
       "     'name': '佛山市',\n",
       "     'center': '113.122717,23.028762',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0758',\n",
       "     'adcode': '441200',\n",
       "     'name': '肇庆市',\n",
       "     'center': '112.472529,23.051546',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0752',\n",
       "     'adcode': '441300',\n",
       "     'name': '惠州市',\n",
       "     'center': '114.412599,23.079404',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440300',\n",
       "     'name': '深圳市',\n",
       "     'center': '114.085947,22.547',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0759',\n",
       "     'adcode': '440800',\n",
       "     'name': '湛江市',\n",
       "     'center': '110.364977,21.274898',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0756',\n",
       "     'adcode': '440400',\n",
       "     'name': '珠海市',\n",
       "     'center': '113.553986,22.224979',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0768',\n",
       "     'adcode': '445100',\n",
       "     'name': '潮州市',\n",
       "     'center': '116.632301,23.661701',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0668',\n",
       "     'adcode': '440900',\n",
       "     'name': '茂名市',\n",
       "     'center': '110.919229,21.659751',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0750',\n",
       "     'adcode': '440700',\n",
       "     'name': '江门市',\n",
       "     'center': '113.094942,22.590431',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441600',\n",
       "     'name': '河源市',\n",
       "     'center': '114.697802,23.746266',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0766',\n",
       "     'adcode': '445300',\n",
       "     'name': '云浮市',\n",
       "     'center': '112.044439,22.929801',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0660',\n",
       "     'adcode': '441500',\n",
       "     'name': '汕尾市',\n",
       "     'center': '115.364238,22.774485',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0662',\n",
       "     'adcode': '441700',\n",
       "     'name': '阳江市',\n",
       "     'center': '111.975107,21.859222',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0663',\n",
       "     'adcode': '445200',\n",
       "     'name': '揭阳市',\n",
       "     'center': '116.355733,23.543778',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0753',\n",
       "     'adcode': '441400',\n",
       "     'name': '梅州市',\n",
       "     'center': '116.117582,24.299112',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '020',\n",
       "     'adcode': '440100',\n",
       "     'name': '广州市',\n",
       "     'center': '113.280637,23.125178',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0751',\n",
       "     'adcode': '440200',\n",
       "     'name': '韶关市',\n",
       "     'center': '113.591544,24.801322',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0763',\n",
       "     'adcode': '441800',\n",
       "     'name': '清远市',\n",
       "     'center': '113.051227,23.685022',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0760',\n",
       "     'adcode': '442000',\n",
       "     'name': '中山市',\n",
       "     'center': '113.382391,22.521113',\n",
       "     'level': 'city',\n",
       "     'districts': []},\n",
       "    {'citycode': '0769',\n",
       "     'adcode': '441900',\n",
       "     'name': '东莞市',\n",
       "     'center': '113.746262,23.046237',\n",
       "     'level': 'city',\n",
       "     'districts': []}]}]}"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "district(key1,keywords = \"广东省\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 搜索POI\n",
    "> * 1、关键字搜索\n",
    "> * 2、周边搜索\n",
    "> * 3、多边形搜索\n",
    "> * 4、ID查询"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 关键字搜索 \n",
    "> * 1、url：https://restapi.amap.com/v3/place/text?parameters\n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、keywords，types\n",
    ">> * 2、可选：city,citylimit,children(是否按照层级展示子POI数据),offset(每页记录数据）,page,extensions,sig,output,callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '899',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '颐和园路5号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '5.0'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ad5f399528ecc5928cdae0691aadf0d5'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/179e616f7547d931de33dec835224fa3'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3dde175d0a4e2a6f84d1c27b8c0404bb'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学',\n",
       "   'location': '116.310905,39.992806',\n",
       "   'tel': '010-62752114;010-62755110',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A816R6'},\n",
       "  {'parent': [],\n",
       "   'address': '学院路38号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '5.0'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/91cafaf144e7da1fd670fe9f7b2a38bf'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/43df2b967819bd29c7abd73b33e1af85'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53ba2fc8a310502a4d0f382c'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学医学部',\n",
       "   'location': '116.357787,39.984798',\n",
       "   'tel': '010-62091114;010-82802191',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7CDQ4'},\n",
       "  {'parent': [],\n",
       "   'address': '十三陵镇西山口村',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/09359a7a83d4dfba3c50aa70bef22146'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0a1ab82ace5131ea899c5fac9ca40b5d'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/57531773c9f82c335cc4605d48932c97'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '昌平区',\n",
       "   'name': '北京大学昌平校区',\n",
       "   'location': '116.189912,40.247449',\n",
       "   'tel': '010-89748044',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ORQI'},\n",
       "  {'parent': [],\n",
       "   'address': '中关村北大街47号北京大学圆明园校区9-10号楼',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a081a610f5a19a9b69203d77e10fd0ec'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/842cf58af51ba6f52eee557cb4211889'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ab2eb5f4bab8c645ac35783314330608'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学(圆明园校区)',\n",
       "   'location': '116.317653,40.015178',\n",
       "   'tel': '010-62557901',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ORTV'},\n",
       "  {'parent': [],\n",
       "   'address': '马池口镇北小营村',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '昌平区',\n",
       "   'name': '北京大学',\n",
       "   'location': '116.164857,40.176646',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0G13C1O5M'},\n",
       "  {'parent': 'B000A7CDQ4',\n",
       "   'address': '学院路38号北京大学医学部',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53ba2fc6a310502a4d0f3640'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学药学院',\n",
       "   'location': '116.357670,39.983662',\n",
       "   'tel': '010-82801500',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A85D0N'},\n",
       "  {'parent': [],\n",
       "   'address': '金苑路24号北京大学软件与微电子学院',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/640e2cfc7fdc93fb7a9e6deb38dff229'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c9e9de79ec4e770f61a3201c6a49c2aa'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/db872a7f0196e2c469dbf69d10ff9c3e'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '大兴区',\n",
       "   'name': '北京大学软件与微电子学院大兴校区',\n",
       "   'location': '116.357061,39.758463',\n",
       "   'tel': '010-61273514;010-61273672',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ORS7'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a3a2d8a310b133764f7d3a'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学哲学楼',\n",
       "   'location': '116.310614,39.990924',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFDCEQT'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '北京大学俄文楼',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学元培学院',\n",
       "   'location': '116.308654,39.992876',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFH083FQ'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/abca7d928ea3fc00722c9f818756e8b0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6c2f1ac1f1afec60496720b2ec76419a'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5382d883a310b9502c0d1f11'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学北阁',\n",
       "   'location': '116.3075,39.993069',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7H252'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ac72fd4bbe79ad2cb98660b89ef2ae24'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学-亨利楼',\n",
       "   'location': '116.311090,39.993567',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFDC068'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号附近',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学三院',\n",
       "   'location': '116.307671,39.991255',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFHSHE5M'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/082d25a987122d74440f2d11ee1fbd97'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53bb4e68a310502a4d107c22'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53bb4e68a310502a4d107c57'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学地学楼',\n",
       "   'location': '116.311877,39.991701',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A80CV9'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '成府路202号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b10edfa310a21470aca4e8'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c6cbfc0121d8133cf429f42f7c52a07c'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b10edfa310a21470aca4e3'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学化学与分子工程学院',\n",
       "   'location': '116.317343,39.991124',\n",
       "   'tel': '010-62751710',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7CKJQ'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '成府路209号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.0'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ee2eff4f8e3ef5b24bdcf496f11f0ab1'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a3c636a31013cc726b6d5c'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5aba836ffe6b3270b60c11ff1e763fb1'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学物理学院',\n",
       "   'location': '116.317166,39.993195',\n",
       "   'tel': '010-62751732',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A85CAQ'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学内',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a8a97e24068d73e5a804d87ca788d26d'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b6f23f10eb28acdf21afabba4f78aee0'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f986ff8623f9b2a19332451aebecc4cb'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学工学院',\n",
       "   'location': '116.317992,39.994085',\n",
       "   'tel': '010-62751812',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFPD48E'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b23d4ae3d61756630d7ac997dbb52c98'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5382d87da310b9502c0d1c2d'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5382d87da310b9502c0d1c31'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学经济学院',\n",
       "   'location': '116.312996,39.996697',\n",
       "   'tel': '010-62751460',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFHN2J7'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '成府路202号北京大学化学与分子工程学院',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bc1d22ad0ea18991c6d9a1f1a67a93c4'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b10edfa310a21470aca4dd'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b10edfa310a21470aca4df'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学-化学楼',\n",
       "   'location': '116.316972,39.991695',\n",
       "   'tel': '010-62751710',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A85DIQ'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学逸夫苑',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53bb4e68a310502a4d107cbd'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53bb4e68a310502a4d107ca0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9d681db4c7487bf0d8be03f4fcf01386'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学计算中心',\n",
       "   'location': '116.312962,39.990475',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A2D3E2'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/806266ce258e4cd3ec5dfe0e8416c469'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ffd90f4c460710c6be7b1dc954b7ae86'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ec5c349a4ed543ebff971e88459f061a'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学教育学院',\n",
       "   'location': '116.311649,39.98898',\n",
       "   'tel': '010-62756141',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A91SLI'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "params = {'key':key1,\n",
    "          'keywords':\"北京大学\",\n",
    "          'types':\"高等院校\"\n",
    "          }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [],
   "source": [
    "def keyword(key,keywords,types,city = None,citylimit = \"true\",children = 1,offset = 20,page = 100,extensions = \"base\",sig = None,output = \"json\",callback = None)->str:\n",
    "    \"\"\"获取高德API的poi关键字搜索\n",
    "温馨提示：key是指高德api的密钥，请先去注册；\n",
    "          keywords是指关键字，types是关键字类型\n",
    "          具体请查看：https://lbs.amap.com/api/webservice/guide/api/search#text\n",
    "    \"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "    params = {'key':key,\n",
    "          'keywords':keywords,\n",
    "          'types':types\n",
    "          }\n",
    "    response = requests.get(url,params = params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '899',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '颐和园路5号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '5.0'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ad5f399528ecc5928cdae0691aadf0d5'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/179e616f7547d931de33dec835224fa3'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3dde175d0a4e2a6f84d1c27b8c0404bb'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学',\n",
       "   'location': '116.310905,39.992806',\n",
       "   'tel': '010-62752114;010-62755110',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A816R6'},\n",
       "  {'parent': [],\n",
       "   'address': '学院路38号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '5.0'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/91cafaf144e7da1fd670fe9f7b2a38bf'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/43df2b967819bd29c7abd73b33e1af85'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53ba2fc8a310502a4d0f382c'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学医学部',\n",
       "   'location': '116.357787,39.984798',\n",
       "   'tel': '010-62091114;010-82802191',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7CDQ4'},\n",
       "  {'parent': [],\n",
       "   'address': '十三陵镇西山口村',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/09359a7a83d4dfba3c50aa70bef22146'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0a1ab82ace5131ea899c5fac9ca40b5d'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/57531773c9f82c335cc4605d48932c97'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '昌平区',\n",
       "   'name': '北京大学昌平校区',\n",
       "   'location': '116.189912,40.247449',\n",
       "   'tel': '010-89748044',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ORQI'},\n",
       "  {'parent': [],\n",
       "   'address': '中关村北大街47号北京大学圆明园校区9-10号楼',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a081a610f5a19a9b69203d77e10fd0ec'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/842cf58af51ba6f52eee557cb4211889'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ab2eb5f4bab8c645ac35783314330608'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学(圆明园校区)',\n",
       "   'location': '116.317653,40.015178',\n",
       "   'tel': '010-62557901',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ORTV'},\n",
       "  {'parent': [],\n",
       "   'address': '马池口镇北小营村',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '昌平区',\n",
       "   'name': '北京大学',\n",
       "   'location': '116.164857,40.176646',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0G13C1O5M'},\n",
       "  {'parent': 'B000A7CDQ4',\n",
       "   'address': '学院路38号北京大学医学部',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53ba2fc6a310502a4d0f3640'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学药学院',\n",
       "   'location': '116.357670,39.983662',\n",
       "   'tel': '010-82801500',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A85D0N'},\n",
       "  {'parent': [],\n",
       "   'address': '金苑路24号北京大学软件与微电子学院',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/640e2cfc7fdc93fb7a9e6deb38dff229'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c9e9de79ec4e770f61a3201c6a49c2aa'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/db872a7f0196e2c469dbf69d10ff9c3e'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '大兴区',\n",
       "   'name': '北京大学软件与微电子学院大兴校区',\n",
       "   'location': '116.357061,39.758463',\n",
       "   'tel': '010-61273514;010-61273672',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7ORS7'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a3a2d8a310b133764f7d3a'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学哲学楼',\n",
       "   'location': '116.310614,39.990924',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFDCEQT'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '北京大学俄文楼',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学元培学院',\n",
       "   'location': '116.308654,39.992876',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFH083FQ'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/abca7d928ea3fc00722c9f818756e8b0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6c2f1ac1f1afec60496720b2ec76419a'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5382d883a310b9502c0d1f11'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学北阁',\n",
       "   'location': '116.3075,39.993069',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7H252'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ac72fd4bbe79ad2cb98660b89ef2ae24'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学-亨利楼',\n",
       "   'location': '116.311090,39.993567',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFDC068'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号附近',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学三院',\n",
       "   'location': '116.307671,39.991255',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFHSHE5M'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/082d25a987122d74440f2d11ee1fbd97'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53bb4e68a310502a4d107c22'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53bb4e68a310502a4d107c57'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学地学楼',\n",
       "   'location': '116.311877,39.991701',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A80CV9'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '成府路202号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b10edfa310a21470aca4e8'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c6cbfc0121d8133cf429f42f7c52a07c'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b10edfa310a21470aca4e3'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学化学与分子工程学院',\n",
       "   'location': '116.317343,39.991124',\n",
       "   'tel': '010-62751710',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7CKJQ'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '成府路209号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.0'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ee2eff4f8e3ef5b24bdcf496f11f0ab1'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a3c636a31013cc726b6d5c'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5aba836ffe6b3270b60c11ff1e763fb1'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学物理学院',\n",
       "   'location': '116.317166,39.993195',\n",
       "   'tel': '010-62751732',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A85CAQ'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学内',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a8a97e24068d73e5a804d87ca788d26d'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b6f23f10eb28acdf21afabba4f78aee0'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f986ff8623f9b2a19332451aebecc4cb'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学工学院',\n",
       "   'location': '116.317992,39.994085',\n",
       "   'tel': '010-62751812',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFPD48E'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b23d4ae3d61756630d7ac997dbb52c98'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5382d87da310b9502c0d1c2d'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5382d87da310b9502c0d1c31'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学经济学院',\n",
       "   'location': '116.312996,39.996697',\n",
       "   'tel': '010-62751460',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFHN2J7'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '成府路202号北京大学化学与分子工程学院',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bc1d22ad0ea18991c6d9a1f1a67a93c4'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b10edfa310a21470aca4dd'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b10edfa310a21470aca4df'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学-化学楼',\n",
       "   'location': '116.316972,39.991695',\n",
       "   'tel': '010-62751710',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A85DIQ'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学逸夫苑',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53bb4e68a310502a4d107cbd'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53bb4e68a310502a4d107ca0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9d681db4c7487bf0d8be03f4fcf01386'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学计算中心',\n",
       "   'location': '116.312962,39.990475',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A2D3E2'},\n",
       "  {'parent': 'B000A816R6',\n",
       "   'address': '颐和园路5号北京大学',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/806266ce258e4cd3ec5dfe0e8416c469'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ffd90f4c460710c6be7b1dc954b7ae86'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ec5c349a4ed543ebff971e88459f061a'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海淀区',\n",
       "   'name': '北京大学教育学院',\n",
       "   'location': '116.311649,39.98898',\n",
       "   'tel': '010-62756141',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A91SLI'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "keyword(key1,keywords = \"北京大学\",types = \"高等院校\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 周边搜索 \n",
    "> * 1、url：https://restapi.amap.com/v3/place/around?parameters\n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、location\n",
    ">> * 2、可选：keywords,type(查询poi类型）,"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '825',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'photos': [],\n",
       "   'typecode': '072101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '街电(榴芒一族中山大学南方学院店)',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLB846S'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院博学路6号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '爽爽石磨肠粉',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': '18218913303',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKX3T5Y'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院明辨路2号二、三层',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '避风塘',\n",
       "   'location': '113.679286,23.632574',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT2R96'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院明辨路2号二、三层',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'slim tea',\n",
       "   'location': '113.679286,23.632574',\n",
       "   'tel': '18944690066',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKSLFAN'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '劲酷烤吧',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13719231627',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3AYBO5X'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '东记乡村美食',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13922398107',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3APADKJ'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '北方饺子馆',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13434241448',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2Z7IX80'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '第1烤场',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13538825321',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2K6PX0X'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '叶龙老武汉烧烤',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '15918718710;13125030232',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G1393J7X'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院明辩路2号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': '1.0', 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '网红小串店',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13802426981',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLNRH1K'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '过气轻食屋',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13049636920',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKTDMOI'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '莫凡烧烤',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13929768267',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT4WNY'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉大道882号旁润泰超市一楼商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'LV柠檬茶',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '15018428578',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIIQNQ7'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;甜品店;甜品店',\n",
       "   'photos': [],\n",
       "   'typecode': '050900',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '味美轩(中大店)',\n",
       "   'location': '113.679286,23.632571',\n",
       "   'tel': '15915874513',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2T96S9V'},\n",
       "  {'parent': [],\n",
       "   'address': '中山大学南方学院',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;四川菜(川菜)',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/20080ba9f6fcd2808d64ce149b517ca9'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9f40694ca108a175d36847d03ecf4ec0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/db33127b3da2ffeeabb9bde1157e33cf'}],\n",
       "   'typecode': '050102',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '重庆湖边纸包鱼',\n",
       "   'location': '113.679871,23.630292',\n",
       "   'tel': '13924024938',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL7NUA2'},\n",
       "  {'parent': [],\n",
       "   'address': '博学路中山大学南方学院后门润泰超市首层23号',\n",
       "   'distance': '1',\n",
       "   'biz_ext': {'cost': [], 'rating': '3.0', 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '我家厨房',\n",
       "   'location': '113.679289,23.632563',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK28XPU'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'distance': '2',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'photos': [],\n",
       "   'typecode': '072101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '怪兽充电(中山大学南方学院)',\n",
       "   'location': '113.679262,23.632583',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLLU813'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇博学路中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '9',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'photos': [],\n",
       "   'typecode': '050202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '井禾寿司',\n",
       "   'location': '113.679193,23.632552',\n",
       "   'tel': '13789117723',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G14PDQVA'},\n",
       "  {'parent': [],\n",
       "   'address': '中山大学南方学院',\n",
       "   'distance': '12',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;外国餐厅;西餐厅(综合风味)',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b18ad10223dfdcbd28e244ef56a3229e'}],\n",
       "   'typecode': '050201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'Uni-hotel西餐',\n",
       "   'location': '113.679224,23.632671',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0GR3OMDZ2'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院明辩路2号',\n",
       "   'distance': '16',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '耀记美食',\n",
       "   'location': '113.679405,23.632673',\n",
       "   'tel': '18816801934',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GRGOTLSL'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "params = {'key':key1,\n",
    "          'location':起始点_中大南方\\\n",
    "                    }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {},
   "outputs": [],
   "source": [
    "def near(key,location)->str:\n",
    "    \"\"\"获取高德API的poi周边搜索\n",
    "温馨提示：key是指高德api的密钥，请先去注册；\n",
    "          location是中心坐标点\n",
    "          具体请查看：https://lbs.amap.com/api/webservice/guide/api/search#around\n",
    "    \"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "    params = {'key':key,\n",
    "          'location':location\n",
    "          }\n",
    "    response = requests.get(url,params = params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '825',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'photos': [],\n",
       "   'typecode': '072101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '街电(榴芒一族中山大学南方学院店)',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLB846S'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院博学路6号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '爽爽石磨肠粉',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': '18218913303',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKX3T5Y'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院明辨路2号二、三层',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '避风塘',\n",
       "   'location': '113.679286,23.632574',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT2R96'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院明辨路2号二、三层',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'slim tea',\n",
       "   'location': '113.679286,23.632574',\n",
       "   'tel': '18944690066',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKSLFAN'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '劲酷烤吧',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13719231627',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3AYBO5X'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '东记乡村美食',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13922398107',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3APADKJ'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '北方饺子馆',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13434241448',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2Z7IX80'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '第1烤场',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13538825321',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2K6PX0X'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '叶龙老武汉烧烤',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '15918718710;13125030232',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G1393J7X'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院明辩路2号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': '1.0', 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '网红小串店',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13802426981',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLNRH1K'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '过气轻食屋',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13049636920',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKTDMOI'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '莫凡烧烤',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13929768267',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT4WNY'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉大道882号旁润泰超市一楼商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'LV柠檬茶',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '15018428578',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIIQNQ7'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;甜品店;甜品店',\n",
       "   'photos': [],\n",
       "   'typecode': '050900',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '味美轩(中大店)',\n",
       "   'location': '113.679286,23.632571',\n",
       "   'tel': '15915874513',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2T96S9V'},\n",
       "  {'parent': [],\n",
       "   'address': '中山大学南方学院',\n",
       "   'distance': '0',\n",
       "   'biz_ext': {'cost': [], 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;四川菜(川菜)',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/20080ba9f6fcd2808d64ce149b517ca9'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9f40694ca108a175d36847d03ecf4ec0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/db33127b3da2ffeeabb9bde1157e33cf'}],\n",
       "   'typecode': '050102',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '重庆湖边纸包鱼',\n",
       "   'location': '113.679871,23.630292',\n",
       "   'tel': '13924024938',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL7NUA2'},\n",
       "  {'parent': [],\n",
       "   'address': '博学路中山大学南方学院后门润泰超市首层23号',\n",
       "   'distance': '1',\n",
       "   'biz_ext': {'cost': [], 'rating': '3.0', 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '我家厨房',\n",
       "   'location': '113.679289,23.632563',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK28XPU'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'distance': '2',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'photos': [],\n",
       "   'typecode': '072101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '怪兽充电(中山大学南方学院)',\n",
       "   'location': '113.679262,23.632583',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLLU813'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇博学路中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '9',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'photos': [],\n",
       "   'typecode': '050202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '井禾寿司',\n",
       "   'location': '113.679193,23.632552',\n",
       "   'tel': '13789117723',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G14PDQVA'},\n",
       "  {'parent': [],\n",
       "   'address': '中山大学南方学院',\n",
       "   'distance': '12',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;外国餐厅;西餐厅(综合风味)',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b18ad10223dfdcbd28e244ef56a3229e'}],\n",
       "   'typecode': '050201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'Uni-hotel西餐',\n",
       "   'location': '113.679224,23.632671',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0GR3OMDZ2'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院明辩路2号',\n",
       "   'distance': '16',\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '耀记美食',\n",
       "   'location': '113.679405,23.632673',\n",
       "   'tel': '18816801934',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GRGOTLSL'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "near(key1,起始点_中大南方)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 多边形搜索 \n",
    "> * 1、url：https://restapi.amap.com/v3/place/polygon?parameters \n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、polygon（经纬度坐标对）\n",
    ">> * 2、可选：keywords,types,offset,page,extensions,sig,output,callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '877',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '14号线东段;15号线',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '交通设施服务;地铁站;地铁站',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bd629cd90d4b5ff8bc10f90bd20481af'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c78a131450836b9827f8011c0c93e9c5'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2637dce8ed6dfd21aeefa83067de3d27'}],\n",
       "   'typecode': '150500',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京(地铁站)',\n",
       "   'location': '116.469409,39.998521',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'BV10013356'},\n",
       "  {'parent': [],\n",
       "   'address': '14号线东段',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '交通设施服务;地铁站;地铁站',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/797d91994b74f2d0bb5ff1ef2f23e049'}],\n",
       "   'typecode': '150500',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '阜通(地铁站)',\n",
       "   'location': '116.471740,39.991699',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'BV10416592'},\n",
       "  {'parent': 'B0FFIJL0Q2',\n",
       "   'address': '来广营',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '79258.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8998f9ce7581be014d21d97d52bb8e90'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/56db5f187333b625fe702c1fd35e7538'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/12158a8fd55f6aab2d8253fe3bc45cfe'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京南湖东园2区',\n",
       "   'location': '116.465513,39.999783',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7W44I'},\n",
       "  {'parent': [],\n",
       "   'address': '宏昌路附近',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6b2bc6190e83c1358cd9e3e2d8d398dc'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6491da2a0da7636fa273bb696cc6dbd5'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c31b0c1d28d8a9a55843750a5fbf55b5'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京西园',\n",
       "   'location': '116.474395,40.004173',\n",
       "   'tel': '13581818718',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A844UJ'},\n",
       "  {'parent': [],\n",
       "   'address': '广顺北大街33号院',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/266df6d9a6bb93ecdd611655f6f23917'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/029c1f0c0dd3e23f3c47c42622518e80'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5786a4f2e98e799158aad40430473737'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '大西洋新城',\n",
       "   'location': '116.466143,39.992265',\n",
       "   'tel': '18600842882',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7HA7I'},\n",
       "  {'parent': [],\n",
       "   'address': '望京南湖南路9号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.3'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b1c711b28fa28ed7cc92396de752d7b2'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a8e569a31013cc726bb719'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/792bd9d15c588f4aee3e01a65248ecc3'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '圣馨大地家园',\n",
       "   'location': '116.461976,39.995678',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A843DP'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西路48-4号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '70456.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商住两用楼宇',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9019905c405bfddccc35132469b530f3'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1a710b224301434de20818a862e9ccf2'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9d4148fe4f96346fc9e3ecf4b9cfbea1'}],\n",
       "   'typecode': '120203',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '金隅国际',\n",
       "   'location': '116.458365,39.985906',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A868CO'},\n",
       "  {'parent': [],\n",
       "   'address': '花家地南街',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '73855.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5bc763fb6e296d2f3a651accc5713b83'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/15d8d099cab929dc0fc3642d0278790d'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fc0337639bb5635334e0a2d3cbbf446b'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '花家地北里',\n",
       "   'location': '116.465856,39.986152',\n",
       "   'tel': '010-64752827',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7HS1R'},\n",
       "  {'parent': [],\n",
       "   'address': '广顺北大街33号院1号楼',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a8e55aa31013cc726bb431'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/296e21f0322c035398e299e4c49fa0d6'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/02371d0136e74b5b6da504d50ede013f'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '福码大厦',\n",
       "   'location': '116.467422,39.994876',\n",
       "   'tel': '010-84726888',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A80FUH'},\n",
       "  {'parent': [],\n",
       "   'address': '南湖南路',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d14c7dba2d01aaf4b4750064a55b5d7b'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a8e56aa31013cc726bba61'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b05b801cbb774ffaf9cdce2e94fcd992'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '花家地西里',\n",
       "   'location': '116.460082,39.988190',\n",
       "   'tel': '010-64716251',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7HS3L'},\n",
       "  {'parent': 'B0FFIJL0Q2',\n",
       "   'address': '望京花家地广顺北大街星源国际对面',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '55000.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dddececaa5b0489185564f6141a24f46'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/66a2056f938b4d5e443293906d1ae994'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f61d141ed5ef79167b18945d4ef04ad6'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '朝阳区',\n",
       "   'name': '南湖东园一区',\n",
       "   'location': '116.465278,40.004165',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A844UM'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西园429',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '49191.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a43623bff331df5193227f02d52af121'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d59d2f7f577e85774ae38538dbdca8a0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9faf8e88a16ec07fea4b7785699175ef'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '里外里公寓',\n",
       "   'location': '116.470066,39.993597',\n",
       "   'tel': '13651229269',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A81FVZ'},\n",
       "  {'parent': [],\n",
       "   'address': '望京中环南路9号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/44d7c03762952f62cb176e17261074f6'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/da87437f3b00f1fbc22aebd8972a7cba'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2e564f7a9e391eb21ae60b8da1f107be'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京大厦',\n",
       "   'location': '116.469999,39.986172',\n",
       "   'tel': '010-64711608;010-64711609',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A8W81N'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西路317号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '77629.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c2ff703dded34c6db44a55dc04fac305'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3378bb22afb2b683a8867673288b55a3'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e21bca62eec895bb9459499b5e6deefb'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '首开知语城',\n",
       "   'location': '116.458759,39.993236',\n",
       "   'tel': '010-64705028',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A83MQP'},\n",
       "  {'parent': 'B0FFIJL0Q2',\n",
       "   'address': '南湖南路15号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '70000.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e203d85b881b4d2a83223dd9978708b0'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/304babc41b0e4e6c9638058a9173d4c0'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c603e0a882fa8ffc4333dcc1ddd0e896'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '朝阳区',\n",
       "   'name': '金隅丽港城',\n",
       "   'location': '116.46189,39.991312',\n",
       "   'tel': '15321530066',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A8455P'},\n",
       "  {'parent': [],\n",
       "   'address': '南湖东园122号(近广顺北大街)',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '29588.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ebbff3b2624f143fb1414e98cc03cac0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7ddafe9175698212404ccf04333c0e21'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8ed0557c9ddb9e30e30faf52b58a432f'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '博泰国际商业广场',\n",
       "   'location': '116.466738,40.002243',\n",
       "   'tel': '010-84728155',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A845C9'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西园211',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '50000.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/81d1ccbcc3ed42d597526a9d240bb33b'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/68c2d6c012978510762cc33d556776f3'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/014d5dd258d8ff12190f688964542299'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京明苑',\n",
       "   'location': '116.468886,40.004394',\n",
       "   'tel': '010-64701619',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7YIG1'},\n",
       "  {'parent': [],\n",
       "   'address': '望京园402号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '45766.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a61694f5b19ae8b43e413325dd967a96'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6523e9c9be8ecbff777b96861d42084f'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/251a2abf6c230dd07547a66b52857644'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '东亚·望京中心',\n",
       "   'location': '116.472575,39.992093',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A84K8Q'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西园221号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '效果图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b200102e3a7b7551d0b0fe6c8da95e32'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53ab7beca3106c892e6e3de0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53ab7beca3106c892e6e3dde'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '博泰大厦',\n",
       "   'location': '116.472773,40.002225',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A72F14'},\n",
       "  {'parent': 'B0FFIJL0Q2',\n",
       "   'address': '望京新城南湖南路8号(近湖光中街)',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '69621.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/40340f9e9fdb48e58006d13bcc58485d'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b503dd2ddb6f47f0a9990d09dcc9a6b0'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/15ff66bfc246a724dba8ced716b2ee8e'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '朝阳区',\n",
       "   'name': '风格雅园(南湖南路)',\n",
       "   'location': '116.463765,39.995022',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A84AL3'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = 'https://restapi.amap.com/v3/place/polygon?parameters'\n",
    "params = {'key':key1,\n",
    "          'polygon':'116.460988,40.006919|116.48231,40.007381;116.47516,39.99713|116.472596,39.985227|116.45669,39.984989|116.460988,40.006919'\n",
    "         }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "def polygon(key,polygon,keywords = None,types = None,offset = 25,page = 100,extensions = \"base\",sig = None,output = \"json\",callback = None)->str:\n",
    "    \"\"\"获取高德API的poi多边形搜索\n",
    "温馨提示：key是指高德api的密钥，请先去注册；\n",
    "          polygon是经纬度坐标对\n",
    "          具体请查看：https://lbs.amap.com/api/webservice/guide/api/search#around\n",
    "    \"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/place/polygon?parameters'\n",
    "    params = {'key':key,\n",
    "          'polygon':polygon\n",
    "          }\n",
    "    response = requests.get(url,params = params)\n",
    "    results = response.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '877',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '14号线东段;15号线',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '交通设施服务;地铁站;地铁站',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bd629cd90d4b5ff8bc10f90bd20481af'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c78a131450836b9827f8011c0c93e9c5'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2637dce8ed6dfd21aeefa83067de3d27'}],\n",
       "   'typecode': '150500',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京(地铁站)',\n",
       "   'location': '116.469409,39.998521',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'BV10013356'},\n",
       "  {'parent': [],\n",
       "   'address': '14号线东段',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '交通设施服务;地铁站;地铁站',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/797d91994b74f2d0bb5ff1ef2f23e049'}],\n",
       "   'typecode': '150500',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '阜通(地铁站)',\n",
       "   'location': '116.471740,39.991699',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'BV10416592'},\n",
       "  {'parent': 'B0FFIJL0Q2',\n",
       "   'address': '来广营',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '79258.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8998f9ce7581be014d21d97d52bb8e90'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/56db5f187333b625fe702c1fd35e7538'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/12158a8fd55f6aab2d8253fe3bc45cfe'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京南湖东园2区',\n",
       "   'location': '116.465513,39.999783',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7W44I'},\n",
       "  {'parent': [],\n",
       "   'address': '宏昌路附近',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6b2bc6190e83c1358cd9e3e2d8d398dc'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6491da2a0da7636fa273bb696cc6dbd5'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c31b0c1d28d8a9a55843750a5fbf55b5'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京西园',\n",
       "   'location': '116.474395,40.004173',\n",
       "   'tel': '13581818718',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A844UJ'},\n",
       "  {'parent': [],\n",
       "   'address': '广顺北大街33号院',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/266df6d9a6bb93ecdd611655f6f23917'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/029c1f0c0dd3e23f3c47c42622518e80'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5786a4f2e98e799158aad40430473737'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '大西洋新城',\n",
       "   'location': '116.466143,39.992265',\n",
       "   'tel': '18600842882',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7HA7I'},\n",
       "  {'parent': [],\n",
       "   'address': '望京南湖南路9号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.3'},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b1c711b28fa28ed7cc92396de752d7b2'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a8e569a31013cc726bb719'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/792bd9d15c588f4aee3e01a65248ecc3'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '圣馨大地家园',\n",
       "   'location': '116.461976,39.995678',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A843DP'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西路48-4号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '70456.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商住两用楼宇',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9019905c405bfddccc35132469b530f3'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1a710b224301434de20818a862e9ccf2'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9d4148fe4f96346fc9e3ecf4b9cfbea1'}],\n",
       "   'typecode': '120203',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '金隅国际',\n",
       "   'location': '116.458365,39.985906',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A868CO'},\n",
       "  {'parent': [],\n",
       "   'address': '花家地南街',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '73855.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5bc763fb6e296d2f3a651accc5713b83'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/15d8d099cab929dc0fc3642d0278790d'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fc0337639bb5635334e0a2d3cbbf446b'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '花家地北里',\n",
       "   'location': '116.465856,39.986152',\n",
       "   'tel': '010-64752827',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7HS1R'},\n",
       "  {'parent': [],\n",
       "   'address': '广顺北大街33号院1号楼',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a8e55aa31013cc726bb431'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/296e21f0322c035398e299e4c49fa0d6'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/02371d0136e74b5b6da504d50ede013f'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '福码大厦',\n",
       "   'location': '116.467422,39.994876',\n",
       "   'tel': '010-84726888',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A80FUH'},\n",
       "  {'parent': [],\n",
       "   'address': '南湖南路',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d14c7dba2d01aaf4b4750064a55b5d7b'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53a8e56aa31013cc726bba61'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b05b801cbb774ffaf9cdce2e94fcd992'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '花家地西里',\n",
       "   'location': '116.460082,39.988190',\n",
       "   'tel': '010-64716251',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7HS3L'},\n",
       "  {'parent': 'B0FFIJL0Q2',\n",
       "   'address': '望京花家地广顺北大街星源国际对面',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '55000.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dddececaa5b0489185564f6141a24f46'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/66a2056f938b4d5e443293906d1ae994'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f61d141ed5ef79167b18945d4ef04ad6'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '朝阳区',\n",
       "   'name': '南湖东园一区',\n",
       "   'location': '116.465278,40.004165',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A844UM'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西园429',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '49191.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a43623bff331df5193227f02d52af121'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d59d2f7f577e85774ae38538dbdca8a0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9faf8e88a16ec07fea4b7785699175ef'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '里外里公寓',\n",
       "   'location': '116.470066,39.993597',\n",
       "   'tel': '13651229269',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A81FVZ'},\n",
       "  {'parent': [],\n",
       "   'address': '望京中环南路9号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/44d7c03762952f62cb176e17261074f6'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/da87437f3b00f1fbc22aebd8972a7cba'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2e564f7a9e391eb21ae60b8da1f107be'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京大厦',\n",
       "   'location': '116.469999,39.986172',\n",
       "   'tel': '010-64711608;010-64711609',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A8W81N'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西路317号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '77629.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c2ff703dded34c6db44a55dc04fac305'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3378bb22afb2b683a8867673288b55a3'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e21bca62eec895bb9459499b5e6deefb'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '首开知语城',\n",
       "   'location': '116.458759,39.993236',\n",
       "   'tel': '010-64705028',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A83MQP'},\n",
       "  {'parent': 'B0FFIJL0Q2',\n",
       "   'address': '南湖南路15号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '70000.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e203d85b881b4d2a83223dd9978708b0'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/304babc41b0e4e6c9638058a9173d4c0'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c603e0a882fa8ffc4333dcc1ddd0e896'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '朝阳区',\n",
       "   'name': '金隅丽港城',\n",
       "   'location': '116.46189,39.991312',\n",
       "   'tel': '15321530066',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A8455P'},\n",
       "  {'parent': [],\n",
       "   'address': '南湖东园122号(近广顺北大街)',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '29588.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ebbff3b2624f143fb1414e98cc03cac0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7ddafe9175698212404ccf04333c0e21'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8ed0557c9ddb9e30e30faf52b58a432f'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '博泰国际商业广场',\n",
       "   'location': '116.466738,40.002243',\n",
       "   'tel': '010-84728155',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A845C9'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西园211',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '50000.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/81d1ccbcc3ed42d597526a9d240bb33b'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/68c2d6c012978510762cc33d556776f3'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/014d5dd258d8ff12190f688964542299'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '望京明苑',\n",
       "   'location': '116.468886,40.004394',\n",
       "   'tel': '010-64701619',\n",
       "   'shopid': [],\n",
       "   'id': 'B000A7YIG1'},\n",
       "  {'parent': [],\n",
       "   'address': '望京园402号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '45766.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a61694f5b19ae8b43e413325dd967a96'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6523e9c9be8ecbff777b96861d42084f'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/251a2abf6c230dd07547a66b52857644'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '东亚·望京中心',\n",
       "   'location': '116.472575,39.992093',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A84K8Q'},\n",
       "  {'parent': [],\n",
       "   'address': '望京西园221号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '效果图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b200102e3a7b7551d0b0fe6c8da95e32'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53ab7beca3106c892e6e3de0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53ab7beca3106c892e6e3dde'}],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '朝阳区',\n",
       "   'name': '博泰大厦',\n",
       "   'location': '116.472773,40.002225',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A72F14'},\n",
       "  {'parent': 'B0FFIJL0Q2',\n",
       "   'address': '望京新城南湖南路8号(近湖光中街)',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': '69621.00', 'rating': []},\n",
       "   'pname': '北京市',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '实景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/40340f9e9fdb48e58006d13bcc58485d'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b503dd2ddb6f47f0a9990d09dcc9a6b0'},\n",
       "    {'provider': [],\n",
       "     'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/15ff66bfc246a724dba8ced716b2ee8e'}],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '朝阳区',\n",
       "   'name': '风格雅园(南湖南路)',\n",
       "   'location': '116.463765,39.995022',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B000A84AL3'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 63,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "polygon(key1,polygon = \"116.460988,40.006919|116.48231,40.007381;116.47516,39.99713|116.472596,39.985227|116.45669,39.984989|116.460988,40.006919\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### ID查询 \n",
    "> * 1、url：https://restapi.amap.com/v3/place/detail?parameters \n",
    "> * 2、requests.get()\n",
    "> * 3、参数：\n",
    ">> * 1、必选：key、id（兴趣点id）\n",
    ">> * 2、可选：sig,output,callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'count': '1',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '110000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'recommend': '0',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'title': '效果图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a9836f620749c34742cf1ab67dc98f08'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b11166a310a21470acde3a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b11166a310a21470acde31'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '5916739702',\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'deep_info': {'deepsrc': []},\n",
       "   'citycode': '010',\n",
       "   'adname': '朝阳区',\n",
       "   'indoor_src': '高德地图',\n",
       "   'children': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0FFFAB6J2',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '116.473993,39.992784',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-10 15:33:24',\n",
       "   'website': [],\n",
       "   'address': '阜荣街10号',\n",
       "   'adcode': '110105',\n",
       "   'pname': '北京市',\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '望京',\n",
       "   'indoor_data': {'cmsid': 'TY000191_B0FFFAB6J2',\n",
       "    'truefloor': [],\n",
       "    'cpid': 'B0FFFAB6J2',\n",
       "    'floor': []},\n",
       "   'childtype': [],\n",
       "   'rich_content': [],\n",
       "   'exit_location': [],\n",
       "   'name': '首开广场',\n",
       "   'location': '116.473004,39.993306',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'J50F001020_342662',\n",
       "   'groupbuy_num': '0'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 64,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = 'https://restapi.amap.com/v3/place/detail?parameters'\n",
    "params = {'key':key1,\n",
    "          'id':'B0FFFAB6J2',\n",
    "          'output':'json'\n",
    "         }\n",
    "r = requests.get(url,params)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [],
   "source": [
    "def searchID(key,id,callback=None,output=\"JSON\"):\n",
    "    \"\"\"ID查询:ID(B0FFFAB6J2)是查询POI ID，extensions(all)为返回的数据内容，output（XML）用于指定返回数据的格式，key是用户请求数据的身份标识。\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/place/detail?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"id\":id,\n",
    "    \"output\":\"json\"   \n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'count': '1',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '110000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'recommend': '0',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [{'title': '效果图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a9836f620749c34742cf1ab67dc98f08'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b11166a310a21470acde3a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b11166a310a21470acde31'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '5916739702',\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'deep_info': {'deepsrc': []},\n",
       "   'citycode': '010',\n",
       "   'adname': '朝阳区',\n",
       "   'indoor_src': '高德地图',\n",
       "   'children': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0FFFAB6J2',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '116.473993,39.992784',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-10 15:33:24',\n",
       "   'website': [],\n",
       "   'address': '阜荣街10号',\n",
       "   'adcode': '110105',\n",
       "   'pname': '北京市',\n",
       "   'biz_type': [],\n",
       "   'cityname': '北京市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '望京',\n",
       "   'indoor_data': {'cmsid': 'TY000191_B0FFFAB6J2',\n",
       "    'truefloor': [],\n",
       "    'cpid': 'B0FFFAB6J2',\n",
       "    'floor': []},\n",
       "   'childtype': [],\n",
       "   'rich_content': [],\n",
       "   'exit_location': [],\n",
       "   'name': '首开广场',\n",
       "   'location': '116.473004,39.993306',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'J50F001020_342662',\n",
       "   'groupbuy_num': '0'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 66,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "searchID(key1,id = 'B0FFFAB6J2')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 静态地图\n",
    "\n",
    "> * A、url:https://restapi.amap.com/v3/staticmap?parameters\n",
    "> * B、requests.get()\n",
    "> * C、参数：\n",
    "\n",
    ">> * 1、必选：key,location（中心点坐标。规则：经度和纬度用\",\"分隔 经纬度小数点后不得超过6位。）,zoom（地图缩放级别:[1,17]）\n",
    ">> * 2、可选：size,scale(普通/高清),markers,labels,paths,traffic,sig"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [],
   "source": [
    "from PIL import Image\n",
    "from io import BytesIO"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "r = requests.get()\n",
    "results = Image.open(BytesIO(r.content))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [],
   "source": [
    "import json"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "def staticmap(key,location,zoom,size = 400*400,scale = 1,markers = 10,labels =10,paths = 4,traffic =1,sig = None):\n",
    "    \"\"\"静态地图使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形。\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/staticmap?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"location\":location,\n",
    "        \"zoom\":zoom\n",
    "        \n",
    "    }\n",
    "    r = requests.get(url,params=params)\n",
    "    result = r.content\n",
    "    results = Image.open(BytesIO(r.content))\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.350961,23.131577'"
      ]
     },
     "execution_count": 71,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "起始点_暨南大学"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAADAFBMVEX6+vnk5+b28/vW5vnW5OrX4/P08Or28+z39O/09PPa4Oj78urZ6Prw8PDq8fLX5/Tu9/7U4exiYWDb6On05tjX5ev9+/7X5+rkwLpHYXj29/Xb4+Hf6vCorK/w8/Tt8foAfeTx+OTo2dbV6ObZ5enb2NLm6uvm5+f26ebb5+zN5qbW6dvX3eLk8vnM4rLi0tLn8tfz+Ov69uu0rYYAicIZmsrz9eZHfcDi4eDj3tX8/Pvc29tPos/58eLi6unb29nS6K/uxZfr8vdCpvr369nq7dzN4vrU6PtNTk+3u77h7tJ4eXzp3MXV4vLb67xoamzT0tLU4un1x4rqwnaXlXrg3Nnx7OTk7fj1qmXz3pqFhoj3sXnit3TP5J/i6/frxoOZm53k7Oj8nFLfsWbS57rjycbD3PbY08nW1teCos7w9ffuz2NpaGfl7vHU4fCqqqrw7OTz9/ZcXmH1iDDi4+Lv132JiozP2t/l7/PL46i5ubnt8/jxv1WxsZ2+1ePt4NOKjpGQkpT13LLP0M3d7MefoKDT4eRgYWTX2s10dXjM5KbP2bHrybTl6uLxyUbT4fD2izi01Pn3kkGlpqe7iEbe4+PQ5Kvh5OJhY2XriSTy03HAwMH0gyrs6+jl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/Swn9pBQQ/5/Y+ORoEMl1N8AAAAASUVORK5CYII=\n",
      "text/plain": [
       "<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x165425D6F70>"
      ]
     },
     "execution_count": 72,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staticmap(key1,起始点_暨南大学,15)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### IP定位\n",
    "\n",
    "> * A、url:https://restapi.amap.com/v3/ip?parameters\n",
    "> * B、requests.get()\n",
    "> * C、参数：\n",
    "\n",
    ">> * 1、必选：key,\n",
    ">> * 2、可选：ip,sig,output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "def IPlocation(key,ip = None,sig = None,output = \"json\"):\n",
    "    \"\"\"ip定位,据用户输入的IP地址，能够快速的帮用户定位IP的所在位置。\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/ip?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"ip\":ip\n",
    "        \n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '北京市',\n",
       " 'city': '北京市',\n",
       " 'adcode': '110000',\n",
       " 'rectangle': '116.0119343,39.66127144;116.7829835,40.2164962'}"
      ]
     },
     "execution_count": 74,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "IPlocation(key1,ip = '114.247.50.2')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 批量请求接口\n",
    "\n",
    "> * 一、申请”web服务 API”密钥（Key）；  \n",
    "> * 二、拼接请求，第一步申请的Key需作为必填参数一同发送，父请求的Key和子请求的Key请务必保持一致；  \n",
    "> * 三、batch接口本身为post请求接口，子请求只支持get方式请求，以json形式返回数据结构；子请求参数请参考各接口文档进行拼接，如无特殊声明，接口的输入参数和输出数据编码全部统一为UTF-8；  \n",
    "> * 四、默认所有的子请求都会继承当前请求的header头；  \n",
    "> * 五、为了保证以后升级兼容，建议header里指明Content-Type：application/json；  \n",
    "> * 六、batch接口当前支持所有v3（请求中带v3字样）接口。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 80,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = \"https://restapi.amap.com/v3/batch?key=<5ae4d72387a97e8529903ac948ab9eff>\"\n",
    "params = {\n",
    "    \"ops\": [\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=<5ae4d72387a97e8529903ac948ab9eff>&location=116.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        },\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=<5ae4d72387a97e8529903ac948ab9eff>&location=118.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        }\n",
    "    ]\n",
    "}\n",
    "r = requests.get(url,params=params)\n",
    "r"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 坐标转换\n",
    "\n",
    "> * A、url:https://restapi.amap.com/v3/assistant/coordinate/convert?parameters\n",
    "> * B、requests.get()\n",
    "> * C、参数：\n",
    "\n",
    ">> * 1、必选：key,location\n",
    ">> * 2、可选：coordsys(原坐标系）,sig,output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "def convert(key,locations,coordsys = None,output=\"JSON\"):\n",
    "    \"\"\"将能够将用户输入的非高德坐标（GPS坐标、mapbar坐标、baidu坐标）转换成高德坐标\n",
    "    具体查看：https://lbs.amap.com/api/webservice/guide/api/convert\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/assistant/coordinate/convert?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"locations\":locations,\n",
    "     \"coordsys\":coordsys,   \n",
    "     \"output\":\"json\"   \n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '113.679287,23.632575'}"
      ]
     },
     "execution_count": 94,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "convert(key1,locations = 起始点_中大南方)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 天气查询\n",
    "\n",
    "> * A、url:https://restapi.amap.com/v3/weather/weatherInfo?parameters\n",
    "> * B、requests.get()\n",
    "> * C、参数：\n",
    "\n",
    ">> * 1、必选：key,city\n",
    ">> * 2、可选：extensions,output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "def weather(key,city,extensions = \"base\",output = \"json\"):\n",
    "    \"\"\"根据用户输入的adcode，查询目标区域当前/未来的天气情况。\n",
    "    具体查看：https://lbs.amap.com/api/webservice/guide/api/weatherinfo\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/weather/weatherInfo?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"city\":city  \n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'lives': [{'province': '广东',\n",
       "   'city': '广州市',\n",
       "   'adcode': '440100',\n",
       "   'weather': '阴',\n",
       "   'temperature': '21',\n",
       "   'winddirection': '北',\n",
       "   'windpower': '4',\n",
       "   'humidity': '64',\n",
       "   'reporttime': '2020-11-14 16:22:36'}]}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "weather(key1,city = \"广州市\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 输入提示\n",
    "\n",
    "> * A、url: https://restapi.amap.com/v3/assistant/inputtips?parameters\n",
    "> * B、requests.get()\n",
    "> * C、参数：\n",
    "\n",
    ">> * 1、必选：key,keywords\n",
    ">> * 2、可选：tpye,location,city,citylimit,datatype,sig,output,callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "def input(key,keywords,location = None,city = None,citylimit = \"true\",datatype = \"all\",sig = None,output = \"json\",callback = None):\n",
    "    \"\"\"提供根据用户输入的关键词查询返回建议列表。\n",
    "    具体查看：https://lbs.amap.com/api/webservice/guide/api/inputtips\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/assistant/inputtips?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"keywords\":keywords\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': 'B036706ZVC',\n",
       "   'name': '麦当劳(春城得来速店)',\n",
       "   'district': '云南省昆明市官渡区',\n",
       "   'adcode': '530111',\n",
       "   'location': '102.726178,25.018438',\n",
       "   'address': '春城路166-168号上海沙龙首层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B001C7XFZZ',\n",
       "   'name': '麦当劳(郫都区店)',\n",
       "   'district': '四川省成都市金牛区',\n",
       "   'adcode': '510106',\n",
       "   'location': '103.978189,30.724212',\n",
       "   'address': '蜀西路399号',\n",
       "   'typecode': '050300',\n",
       "   'city': []},\n",
       "  {'id': 'B001C806EK',\n",
       "   'name': '麦当劳(欢乐谷店)',\n",
       "   'district': '四川省成都市金牛区',\n",
       "   'adcode': '510106',\n",
       "   'location': '104.035489,30.719447',\n",
       "   'address': '沙西线1号华侨城公园广场',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF6RH4F',\n",
       "   'name': '麦当劳(地铁中心城店)',\n",
       "   'district': '四川省成都市青羊区',\n",
       "   'adcode': '510105',\n",
       "   'location': '104.065310,30.657614',\n",
       "   'address': '天府广场B1层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B001C8059O',\n",
       "   'name': '麦当劳(软件园DT餐厅)',\n",
       "   'district': '四川省成都市武侯区',\n",
       "   'adcode': '510107',\n",
       "   'location': '104.070686,30.542893',\n",
       "   'address': '天府大道中段801号,天府软件园B区',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B001C80DKS',\n",
       "   'name': '麦当劳(五桂桥餐厅)',\n",
       "   'district': '四川省成都市成华区',\n",
       "   'adcode': '510108',\n",
       "   'location': '104.128358,30.636119',\n",
       "   'address': '迎晖路194号五桂桥客运站内',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B001C8OFKY',\n",
       "   'name': '麦当劳(成都东站)',\n",
       "   'district': '四川省成都市成华区',\n",
       "   'adcode': '510108',\n",
       "   'location': '104.143451,30.628907',\n",
       "   'address': '青衣江路成都东站候车大厅2层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B001786OHS',\n",
       "   'name': '麦当劳(鲁能星城得来速店)',\n",
       "   'district': '重庆市渝北区',\n",
       "   'adcode': '500112',\n",
       "   'location': '106.560443,29.594875',\n",
       "   'address': '渝鲁大道666号鲁能新城7街区1层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B001D0YL8Z',\n",
       "   'name': '麦当劳(西安北站)',\n",
       "   'district': '陕西省西安市未央区',\n",
       "   'adcode': '610112',\n",
       "   'location': '108.938634,34.378386',\n",
       "   'address': '文景路北口西安北站F3层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF657F1',\n",
       "   'name': '麦当劳(金莎国际店)',\n",
       "   'district': '陕西省西安市雁塔区',\n",
       "   'adcode': '610113',\n",
       "   'location': '108.947617,34.225757',\n",
       "   'address': '长安中路65号金莎国际广场一层',\n",
       "   'typecode': '050302',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "input(key1,keywords = \"麦当劳\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>district</th>\n",
       "      <th>adcode</th>\n",
       "      <th>location</th>\n",
       "      <th>address</th>\n",
       "      <th>typecode</th>\n",
       "      <th>city</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B036706ZVC</td>\n",
       "      <td>麦当劳(春城得来速店)</td>\n",
       "      <td>云南省昆明市官渡区</td>\n",
       "      <td>530111</td>\n",
       "      <td>102.726178,25.018438</td>\n",
       "      <td>春城路166-168号上海沙龙首层</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B001C7XFZZ</td>\n",
       "      <td>麦当劳(郫都区店)</td>\n",
       "      <td>四川省成都市金牛区</td>\n",
       "      <td>510106</td>\n",
       "      <td>103.978189,30.724212</td>\n",
       "      <td>蜀西路399号</td>\n",
       "      <td>050300</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B001C806EK</td>\n",
       "      <td>麦当劳(欢乐谷店)</td>\n",
       "      <td>四川省成都市金牛区</td>\n",
       "      <td>510106</td>\n",
       "      <td>104.035489,30.719447</td>\n",
       "      <td>沙西线1号华侨城公园广场</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFF6RH4F</td>\n",
       "      <td>麦当劳(地铁中心城店)</td>\n",
       "      <td>四川省成都市青羊区</td>\n",
       "      <td>510105</td>\n",
       "      <td>104.065310,30.657614</td>\n",
       "      <td>天府广场B1层</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B001C8059O</td>\n",
       "      <td>麦当劳(软件园DT餐厅)</td>\n",
       "      <td>四川省成都市武侯区</td>\n",
       "      <td>510107</td>\n",
       "      <td>104.070686,30.542893</td>\n",
       "      <td>天府大道中段801号,天府软件园B区</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B001C80DKS</td>\n",
       "      <td>麦当劳(五桂桥餐厅)</td>\n",
       "      <td>四川省成都市成华区</td>\n",
       "      <td>510108</td>\n",
       "      <td>104.128358,30.636119</td>\n",
       "      <td>迎晖路194号五桂桥客运站内</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B001C8OFKY</td>\n",
       "      <td>麦当劳(成都东站)</td>\n",
       "      <td>四川省成都市成华区</td>\n",
       "      <td>510108</td>\n",
       "      <td>104.143451,30.628907</td>\n",
       "      <td>青衣江路成都东站候车大厅2层</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B001786OHS</td>\n",
       "      <td>麦当劳(鲁能星城得来速店)</td>\n",
       "      <td>重庆市渝北区</td>\n",
       "      <td>500112</td>\n",
       "      <td>106.560443,29.594875</td>\n",
       "      <td>渝鲁大道666号鲁能新城7街区1层</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B001D0YL8Z</td>\n",
       "      <td>麦当劳(西安北站)</td>\n",
       "      <td>陕西省西安市未央区</td>\n",
       "      <td>610112</td>\n",
       "      <td>108.938634,34.378386</td>\n",
       "      <td>文景路北口西安北站F3层</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFF657F1</td>\n",
       "      <td>麦当劳(金莎国际店)</td>\n",
       "      <td>陕西省西安市雁塔区</td>\n",
       "      <td>610113</td>\n",
       "      <td>108.947617,34.225757</td>\n",
       "      <td>长安中路65号金莎国际广场一层</td>\n",
       "      <td>050302</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           id           name   district  adcode              location  \\\n",
       "0  B036706ZVC    麦当劳(春城得来速店)  云南省昆明市官渡区  530111  102.726178,25.018438   \n",
       "1  B001C7XFZZ      麦当劳(郫都区店)  四川省成都市金牛区  510106  103.978189,30.724212   \n",
       "2  B001C806EK      麦当劳(欢乐谷店)  四川省成都市金牛区  510106  104.035489,30.719447   \n",
       "3  B0FFF6RH4F    麦当劳(地铁中心城店)  四川省成都市青羊区  510105  104.065310,30.657614   \n",
       "4  B001C8059O   麦当劳(软件园DT餐厅)  四川省成都市武侯区  510107  104.070686,30.542893   \n",
       "5  B001C80DKS     麦当劳(五桂桥餐厅)  四川省成都市成华区  510108  104.128358,30.636119   \n",
       "6  B001C8OFKY      麦当劳(成都东站)  四川省成都市成华区  510108  104.143451,30.628907   \n",
       "7  B001786OHS  麦当劳(鲁能星城得来速店)     重庆市渝北区  500112  106.560443,29.594875   \n",
       "8  B001D0YL8Z      麦当劳(西安北站)  陕西省西安市未央区  610112  108.938634,34.378386   \n",
       "9  B0FFF657F1     麦当劳(金莎国际店)  陕西省西安市雁塔区  610113  108.947617,34.225757   \n",
       "\n",
       "              address typecode city  \n",
       "0   春城路166-168号上海沙龙首层   050302   []  \n",
       "1             蜀西路399号   050300   []  \n",
       "2        沙西线1号华侨城公园广场   050302   []  \n",
       "3             天府广场B1层   050302   []  \n",
       "4  天府大道中段801号,天府软件园B区   050302   []  \n",
       "5      迎晖路194号五桂桥客运站内   050302   []  \n",
       "6      青衣江路成都东站候车大厅2层   050302   []  \n",
       "7   渝鲁大道666号鲁能新城7街区1层   050302   []  \n",
       "8        文景路北口西安北站F3层   050302   []  \n",
       "9     长安中路65号金莎国际广场一层   050302   []  "
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(input(key1,keywords = \"麦当劳\")['tips'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 交通姿态\n",
    "(说明：交通态势接口计划将于2020年12月31日下线，目前不再对新用户开放，因此无法完成交通姿态一栏）\n",
    "> * A、url: https://restapi.amap.com/v3/traffic/status/rectangle?parameters\n",
    "> * B、requests.get()\n",
    "> * C、参数：\n",
    "\n",
    ">> * 1、必选：key\n",
    ">> * 2、可选：level,extensions,sig,output,callback,rectangle"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "def traffic(key,extensions = \"base\",sig = None,output = \"json\",callback = None,rectangle = None):\n",
    "    \"\"\"提供根据用户输入的内容能够返回希望查询的交通态势情况\n",
    "    具体查看：https://lbs.amap.com/api/webservice/guide/api/trafficstatus\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/traffic/status/rectangle?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"rectangle\":rectangle,\n",
    "    \"output\":\"json\"\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'info': 'INSUFFICIENT_PRIVILEGES',\n",
       " 'infocode': '10012',\n",
       " 'status': '0',\n",
       " 'sec_code_debug': 'd41d8cd98f00b204e9800998ecf8427e',\n",
       " 'key': '5ae4d72387a97e8529903ac948ab9eff',\n",
       " 'sec_code': 'd41d8cd98f00b204e9800998ecf8427e'}"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "traffic(key1,rectangle = \"116.351147,39.966309;116.357134,39.968727\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "341.3px"
   },
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
